Doubt by

A block of mass M is attached with a spring of mass m find the time period of the block if it slightly move away from its equillibrium position and spring has also some mass m