For this case we have to:
x: Let the variable representing the number of people to travel in the group
y: Let the variable representing the number of miles traveled.
If friends only have $22 then we have the following inequality:

Now, if there are three people in the group we have that 

The taxi can travel a maximum of 19.33 miles.
On the other hand, if the group wants to travel 10 miles then we have to y = 10.

Thus, they could travel a maximum of 5 people.
ANswer:

Traveling 3 people, the taxi can travel a maximum of 19.33 miles
Traveling 10 miles, a maximum of 5 people can travel
The answer is 6n^3+n^2+6n-4 I hope I helped you!
B. A hexagonal prism would have every side be a hexagon or a triangle.
I am not sure about the probability but I cant tell you these events are independent because u don't need to roll a five for a coin to land on heads
2x=9-y
3y=x-8
y=9-2x
3(9-2x)=x-8
27-6x=x-8
35=7x
x=5
2*5=9-y
10=9-y
y-1