planets a, b and c orbit a certain star once every 3, 7, and 18 months respectively. if the three planets are now in the same straight line, what is the smallest number of months that must pass before they line up again?