There are three kinds of coins of 1 cent, 2 cents and 5 cents in the money bag. A takes out three coins from the bag, and B takes out two coins from the bag. The five coins taken out have only two denominations, and the three coins taken out by A The sum of the two coins taken out by B is 3 points less than the sum of the two coins taken out by B. What is the maximum sum of the coins taken out?
钱袋中有1分、2分和5分三种硬币，甲从袋中取出三枚，乙从袋中取出两枚，取出的五枚硬币仅有两种面值，并且甲取出的三枚硬币的和比乙取出的两枚硬币的和少3分，那么取出的钱数的总和最多是多少分．
<gadget id="calculator">5 * 2</gadget>
<output>10</output>

<gadget id="calculator">1 * 2</gadget>
<output>2</output>

<gadget id="calculator">10 + 5 + 2</gadget>
<output>17</output>

<result>17</result>