During a school fundraiser, the students are selling boxes of chocolates. Each box contains 10 chocolates and is sold for $5. The students also sell cookies at $3 for a box of 5 cookies.
If they sold a total of 50 boxes of chocolates and cookies combined, and the total revenue from these sales was $215, how many boxes of chocolates were sold?