Arrangement of three celestial bodies in a straight line