Step-by-step explanation:
LCM of 18, 30 and 42
= 2×3×3×5×7
=630 option B
After 630secs the planets will be aligned again