Accelerations of both the balls are a1=gsinθ and a2=−gsinθ down the inclineBall 1 :2l=(0)t+21gsinθt2.......(1)Ball 2 :2l=vit+21(−gsinθ)t2...(2)Adding eqn. (1) and (2), we get l=vit or t=vilSubstituting it in eqn. (1), we get 2l=21gsinθ(vi1)2 or vi=glsinθ=gh