Write a formula that will help them decide how much each friend will have to pay.
Let's let
w = price per mile
x = number of miles traveled
y = number of friends in the cab
z = cost for each friend