a1= 16 m/s²
m1 = 0.5 kg
force = F = m1a1 = 16 x 0.5 = 8N
same force is applied to the second mass; m2
F = m2a2 = 8N
or
m2 = 8/a2
m2 = 8/4 = 2kg
total mass = m1 + m2 = 0.5 + 2 = 2.5 kg
force is same as before
so,
a = F/M
= 8/ 2.5
= 3.2 m/s²
So an acceleration of 3.2 m/s² will be produced b this force.
Hope this helps :)