10、A and B, two frogs, are having a jumping contest. A jumps 10 cm each time, and B jumps 15 cm each time. They both jump once per second and start from the starting point together. During the contest, there is a pit every 12 cm. When the first frog falls into a pit, the other frog is ( ) cm away from the nearest pit.
【Analysis】The problem is about periodic issues. According to the problem: the traps are set at $12, 24, 36, 48, 60 \ldots$; Frog A will fall into a trap after 6 jumps, Frog B will fall into a trap after 4 jumps, so B falls into the trap first; at this point, A has also jumped 4 times, covering 40 centimeters, so it is 4 centimeters away from the nearest trap.