A corner store sells two kinds of baked goods: cakes and pies. A cake costs $9 and a pie costs $14. In one day, the store sold 10 bake baked goods for a total of $130. How many cakes did they sell?