Hugh bought some magazines that cost $3.95 each and some books that cost $8.95 each. He spent a total of $47.65. Let m represent the number of magazines and b represent the number of books.
Number of magazines = m
Number of books = b
The cost of one magazine = $3.95
The cost of one book = $8.95
3.95m + 8.95b = 47.65