A corner store sells two kinds of baked goods: cakes and pies. A cake costs $5 and a pie costs $7. In one day, the store sold 15 baked goods for a total of $91. How many cakes did they sell?
Write a system of equations representing the problem and solve.