Robert has built a mechanical model solar system with three balls representing planets at the end of rods attached to the centre representing the sun. The planets are aligned when he turns on the motor. The innermost planet makes a revolution in 12 seconds, the middle planet makes a revolution in 30 seconds, and the outermost planet makes a revolution in 42 seconds. After how many seconds will the planets be aligned again?