The amount spent on mango juice is 94 - 54 = <<94-54=40>>40 dollars
Dividing the 40 dollars by the cost of a glass of mango juice gives us 40/5 = <<40/5=8>>8 people
Since a glass of pineapple juice goes for $6, the number that ordered is 54/6 = <<54/6=9>>9 people
Adding both numbers gives a total of 8 + 9 =<<8+9=17>>17 people
#### 17