Answer: 4 pairs of socks.
Explanation:
We first do 50 - 24.95 to find out how much money you have after you buy the pants.
That is $25.05
We'll divide $25.05 by 5.95, since each sock is $5.95.
That gives us 4.21, but that has a decimal. You can't buy 0.21 of a sock, so we ignore the decimal part of the answer. What is left is 4 pairs of socks.