From the five numbers 2, 3, 5, 7, and 9, select four numbers to form a four-digit number that has a remainder of 2 when divided by 3 and 5. How many such four-digit numbers are there?
从2、3、5、7、9五个数字中，选出四个数字组成被3和5除都余2的四位数，这样的四位数共有多少个．
<gadget id="calculator">3 * 2 * 1</gadget>
<output>6</output>

<gadget id="calculator">6 * 2</gadget>
<output>12</output>

<gadget id="calculator">12 + 12</gadget>
<output>24</output>

<result>24</result>