To determine how many books and magazines Sarah bought, we can set up a system of equations based on the given information.
Let's represent the number of books Sarah bought as "b" and the number of magazines as "m".
According to the question, each book costs $8 and each magazine costs $3.
So, the first equation can be written as:
8b + 3m = 145 (equation 1)
The second equation is given by the fact that Sarah bought a total of 25 books and magazines:
b + m = 25 (equation 2)
Now, we can solve this system of equations using the substitution method.
First, let's solve equation 2 for b:
b = 25 - m
Now, substitute this value of b in equation 1:
8(25 - m) + 3m = 145
200 - 8m + 3m = 145
-5m = -55
Dividing both sides by -5:
m = 11
Now, substitute this value of m in equation 2 to find b:
b + 11 = 25
b = 14
Therefore, Sarah bought 14 books and 11 magazines.