Answer:
They were 10 friend
Step-by-step explanation:
We can construct the equation system as follows:

we can solve for the number of friend by using subtritution:






we get a quadratic formula we solve for the positive root
f = 10
We know check if the root is correct:
800 / 10 = 80
800 / (10 - 2) = 100