Find the answer to the math problem: During April, the baker sold 453 cakes at $12 and 126 pies at $7. How much did the baker earn?