ok ......if for any problem like the one given in the question if two masses are attached to eahc other by a srping the system is equivalent to one single mass attached to same spring whose mass is given as, mu = (m*M) / m+M where m and M are the masses attached to the spring this is called reduced mass.....hope u understud!!!