The swamp middle school basketball team purchased new equipment and uniforms. The total cost of equipment was $245 and each uniform cost $21. If the total cost of their purchase was $518, how many uniforms did they buy? Create an equation for this solution.