A spring mass system oscillates with a time period T1 when a certain mass is attached to the spring. When a different mass is attached after removing the first mass the time period becomes T2. When both the masses are attached to the free end of the spring with the other end fixed, the time period of oscillation is :