Two frogs A and B are playing a jumping game. A jumps 10 centimeters each time, and B jumps 15 centimeters each time. They only jump once per second, and they start from the starting point together. During the game, there is a trap every 12 centimeters. When the first one of them falls into the trap, how many centimeters is the other one from the nearest trap?
A、B两只青蛙玩跳跃游戏，A每次跳10厘米，B每次跳15厘米，它们每秒都只跳1次，且一起从起点开始．在比赛途中，每隔12厘米有一陷阱，当它们中第一只掉进陷阱时，另一只距离最近的陷阱有多少厘米．
<gadget id="calculator">60 / 15</gadget>
<output>4</output>

<gadget id="calculator">10 * 4</gadget>
<output>40</output>

<gadget id="calculator">12 * 3</gadget>
<output>36</output>

<gadget id="calculator">40 - 36</gadget>
<output>4</output>

<result>4</result>