Xiaoming and Xiaogang both saved some pocket money, and the ratio of the money they saved was 7:4. During the activity to support the disaster area, Xiaoming donated 22 yuan to the people in the disaster area, and Xiaogang donated 10 yuan. At this time They have the same amount of money left. How much money did Xiao Ming and Xiao Gang each have?
小明与小刚都积攒了一些零用钱，他们所积攒的钱数比是7：4，在支援灾区的活动中，小明向灾区人民捐了22元钱，小刚捐了10元钱，这时他们所剩的钱数相等，小明和小刚原来各有多少钱？
<gadget id="calculator">7 / 4</gadget>
<output>7/4 = around 1.75</output>

<gadget id="calculator">(7/4) * 10</gadget>
<output>35/2 = around 17.5</output>

<gadget id="calculator">22 - (35/2)</gadget>
<output>9/2 = around 4.5</output>

<gadget id="calculator">(7/4) - 1</gadget>
<output>3/4 = around 0.75</output>

<gadget id="calculator">(9/2) / (3/4)</gadget>
<output>6</output>

<gadget id="calculator">6 + 10</gadget>
<output>16</output>

<result>16</result>