How do you set up the inequality for this problem:

The cost of the book was at most three times the cost of the magazine. If the book cost $5.10, how much for the magazine have cost if none sell for more than $2.99?

The cost of the book was at most three times the cost of the magazine. If the book cost $5.10, how much for the magazine have cost if none sell for more than $2.99?