Let the tension in the string connected to the 2 kg mass be T.
Tension on the movable pulley holding the 8 kg mass=2T
Constraint relation: 2⋅a1=a2⟹a2kg=2a, a8kg=a
Equations of motion:
8g−2T=8a⟹4g−T=4a
T−2g=2(2a)⟹T−2g=4a
Adding the equations: 2g=8a⟹a=4g=410=2.5 m/s2
Time taken to strike the ground (h=20 cm=0.2 m):
h=21at2⟹0.2=21(2.5)t2
t2=2.50.4=0.16⟹t=0.4 s