Fadi earned money selling pies and cakes. For the pies, he made a profit of $250 with an expense of $5 per pie. For the cakes, he made a profit of $200 with an expense of $4 per cake. He sold the same number of pies and cakes.