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

<gadget id="calculator">10 - 3</gadget>
<output>7</output>

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

<result>17</result>