To determine how many magazines the Salem library can buy, you divide the total amount of money the library has by the cost of each magazine.
The formula is:
Substituting the known values:
Now, performing the division:
Therefore, the Salem library will be able to buy 77 magazines.