Mary won £5000 in a competition

She used the money to pay for herself and 8 friends to go on a holiday

Flights cost £279 for each of them

Accommodation cost £184 for each of them

How much of the £5000 did she have left after paying for flights and accommodation for herself and the 8 friends?