Emma has decided to organize a party and buy drinks for her guests. She plans to buy bottles of soda and juice. Each bottle of soda costs $2.50 and each bottle of juice costs $3.00. If Emma buys 8 bottles in total and spends $21.00, how many bottles of soda did she buy?