Newton's law of cooling states that
t(T1−T2)=K((2T1+T2)−T0)...(i)
where T0 is the temperature of the surrounding. From equation (i),
7×6060−40=K(260+40−10)
⇒7×6020=40K⇒K=7×60×4020
Let the temperature of the body after the given time be x∘C. By Newton's law of cooling,
7×6040−x=K(240+x−10)⇒7×6040−x=14×601(220+x)⇒160−4x=20+x⇒x=28∘C