The ratio of A and B's original money is 5:4. Later, A spent 45 yuan and B got another 45 yuan. At this time, the ratio of the two people's money is 5:7. How much did they have in total? money?
甲乙两人原有的钱数之比是5：4，后来甲用去了45元，乙又得到了45元，这时两人的钱数之比是5：7，两人原来一共有多少钱？
<gadget id="calculator">5 / 7</gadget>
<output>5/7 = around 0.714286</output>

<gadget id="calculator">(5/7) * 45</gadget>
<output>225/7 = around 32.142857</output>

<gadget id="calculator">45 + (225/7)</gadget>
<output>540/7 = around 77.142857</output>

<gadget id="calculator">(5/7) * 4</gadget>
<output>20/7 = around 2.857143</output>

<gadget id="calculator">5 - (20/7)</gadget>
<output>15/7 = around 2.142857</output>

<gadget id="calculator">(540/7) / (15/7)</gadget>
<output>36</output>

<gadget id="calculator">5 * 36</gadget>
<output>180</output>

<gadget id="calculator">4 * 36</gadget>
<output>144</output>

<gadget id="calculator">180 + 144</gadget>
<output>324</output>

<result>324</result>