EXPLANATION
Let's see the facts:
Available to spend +$60
Spent on a sweater -$42.5
---------------------
There are 60 - 42.5 = $17.5 left to spend
The pack of socks cost = $4.5/each
Calling x to the number of packs of socks and turning this into an inequality:
42.5 + 4.5x ≤ 60 [INEQUALITY]
Subtracting -42.5 to both sides:
4.5x ≤ 60 - 42.5
Simplifying:
4.5x ≤ 17.5
Dividing both sides by 4.5:
x ≤ 17.5 / 4.5
Simplifying:
x ≤ 3.9
Answer: The maximum number of packs Danny could buy is 3.