Earl has $90; Fred has $48; Greg has $36. Earl owes Fred $28. Fred owes Greg $32. Greg owes Earl $40. When all debts are paid, how much will Greg and Earl have together in dollars?
Earl will have $90 - $28 = $
<gadget id="calculator">90-28</gadget>
<output>62</output>
62 after paying off his debt to Fred.
Fred will have $48 + $28 = $
<gadget id="calculator">48+28</gadget>
<output>76</output>
76 after being paid by Earl.
But then Fred will have $76 - $32 = $
<gadget id="calculator">76-32</gadget>
<output>44</output>
44 after paying Greg.
Greg will have $36 + $32 = $
<gadget id="calculator">36+32</gadget>
<output>68</output>
68 after Fred paid him.
Then, Greg will have $68 - $40 = $
<gadget id="calculator">68-40</gadget>
<output>28</output>
28 after paying off his debt to Earl.
Then, Earl will then have $62 + $40 = $
<gadget id="calculator">62+40</gadget>
<output>102</output>
102.
So together, Greg and Earl will have $28 + $102 = $
<gadget id="calculator">28+102</gadget>
<output>130</output>
130.

<result>130</result>