Sarah took the advertising department from her company on a round trip to meet with a potential client. Including Sarah a total of 10 people took the trip. She was able to purchase coach tickets for ​$160 and first class tickets for ​$1020. She used her total budget for airfare for the​ trip, which was ​$8480. How many first class tickets did she​ buy? How many coach tickets did she​ buy?