(a) Let $T_{1},T_{2}$ be the time period of shorter length and longer length pendulums respectively. Ads per question, $nT_{1} = (n - 1)T_{2}$;
So $n2\pi\sqrt{\frac{0.5}{g}} = (n - 1)2\pi\sqrt{\frac{20}{g}}$
or $n = (n - 1)\sqrt{40} \approx (n - 1)6$
Hence, $5n = 6$
Hence, after 5 oscillations they will be in same phase