In a basketball game, Jon scored 3 points. Jack scored 5 points more than Jon, and Tom scored 4 less than the points of Jon and Jack together. How many points did they score altogether?
Jack scored 3 + 5 = 
<gadget id="calculator">3+5</gadget>
<output>8</output>
8 points.
Together, Jon and Jack scored 8 + 3 = 
<gadget id="calculator">8+3</gadget>
<output>11</output>
11 points.
So, Tom scored 11 - 4 = 
<gadget id="calculator">11-4</gadget>
<output>7</output>
7 points.
Thus, Jon, Jack, and Tom scored a total of 3 + 8 + 7 = 
<gadget id="calculator">3+8+7</gadget>
<output>18</output>
18 points.

<result>18</result>