m1=300g, m2=200g and F=0.40N. the force is 0.4 N...
it accelerates two masses m1 and m2...
so.. (m1 + m2)a= 0.4N
but if u see... the string provides force only for m1 for acceleration...
so.. tension in string = m1.a
a = 0.4/(m1 + m2)
so. tension T = m1.a/(m1+m2)
now just substitute the values of force, m1 and m2
u'll get T = 0.3 x 0.4 / 0.5
= 0.24N
so tension in string comes out to be 0.24 newtons