Benjamin went to McDonald's to buy something for dinner. He bought a salad, a burger, and two packs of fries. He paid in total $15. How much did the burger cost, if one pack of fries was for $2 and the salad was three times that price?
Benjamin paid for the fries 2 * 2 = $
<gadget id="calculator">2*2</gadget>
<output>4</output>
4.
The salad was three times the price of one pack of fries, so it cost 3 * 2 = $
<gadget id="calculator">3*2</gadget>
<output>6</output>
6.
The cost of the burger was 15 - 6 - 4 = $
<gadget id="calculator">15-6-4</gadget>
<output>5</output>
5.

<result>5</result>