In a machine, a particular gear completes a rotation in 6 seconds. Another gear completes a rotation in 9 seconds. At a certain instant, both gears complete their rotations at exactly the same time. How many seconds will elapse before the two gears complete their rotations at exactly the same time again?