Two gears in a machine are aligned by a mark drawn from the center of one gear to the center of the other. If the first gear has teeth, and the second gear has teeth, how many revolutions of the first gear are needed until the marks line up again?