James goes out to eat.  He orders a steak and egg meal for $16.  He is with his friend, who orders chicken fried steak for $14.  His friend pays for half the bill and James pays the tip along with his half of the bill. They tip 20%.  How much did James pay?
The meals cost 16+14=$
<gadget id="calculator">16+14</gadget>
<output>30</output>
30.
So each paid 30/2=$
<gadget id="calculator">30/2</gadget>
<output>15</output>
15.
James left a tip of 30*.2=$
<gadget id="calculator">30*.2</gadget>
<output>6</output>
6.
So James paid 15+6=$
<gadget id="calculator">15+6</gadget>
<output>21</output>
21.

<result>21</result>