Final answer:
There were originally 10 friends in the group.
Step-by-step explanation:
Let's assume that there were initially x friends in the group. So, the total cost of the trip was $800 and each friend would have paid $800/x before two friends decided not to go. After two friends decided not to go, the remaining friends still divided the $800 cost equally, but each friend's share increased by $20. Therefore, the amount each friend paid after is $800/x-2.
We can set up an equation: $800/x - $800/x-2 = $20.
Simplifying the equation, we get $800(x-2) - $800(x) = $20(x)(x-2). Solving this equation, we find that x = 10.
Therefore, there were originally 10 friends in the group.