originally, the cost was to be divided among all members

Where m is the number of members and x was the cost per person originally
When 5 people decided not to go, x was increased $14 and m decreased 5...

Now, we have two equations that we need to solve...


if we subtract the two expressions, we get the above
Now, we simplify...

Now, we solve for m

we obtain that m=25, meaning there are 25 members, so 25-5=20, this is, 20 people went to the expedition