There are several coins of 1 cent, 2 cents, 5 cents and 1 dime in the pocket. Xiaohong took out three coins from it, and Xiaojun took out two coins from it. As a result, Xiaojun's two coins were 2 cents more than Xiaohong's three coins. What is the maximum total value of the five coins taken out by Xiaohong and Xiaojun?
口袋中有1分、2分、5分和1角的硬币若干枚．小红从中取出三枚，小军从中取出两枚，结果小军的两枚比小红的三枚还多2分钱．小红和小军取出的五枚硬币的总值最多多少分．
<gadget id="calculator">1 + 2 + 10 + 1 + 2 + 2 + 1 + 2 + 2 + 1 + 2 + 2</gadget>
<output>28</output>

<result>28</result>