A group of friends walked into Juju’s Juice Bar ordered a glass of fruit juice each. They spent a total of $94. Some of them ordered mango juice, which sells for $5 a glass, while others asked for pineapple juice, at $6 a glass. If $54 was spent on pineapple juice, how many people were in the group?
The amount spent on mango juice is 94 - 54 = 
<gadget id="calculator">94-54</gadget>
<output>40</output>
40 dollars.
Dividing the 40 dollars by the cost of a glass of mango juice gives us 40/5 = 
<gadget id="calculator">40/5</gadget>
<output>8</output>
8 people.
Since a glass of pineapple juice goes for $6, the number that ordered is 54/6 = 
<gadget id="calculator">54/6</gadget>
<output>9</output>
9 people.
Adding both numbers gives a total of 8 + 9 =
<gadget id="calculator">8+9</gadget>
<output>17</output>
17 people.

<result>17</result>