This can be written as a system of equations to solve.
Let b be the number of belts and w be the number of wallets.
b+w=42
7b+4w=213
Multiply the first equation by 4
4b+4w=168
Subtract this equation from the second.
(7b-4b)+(4w-4w)=213-168
The ws cancel out!
Now simplify.
3b=45
b=$15
This can be substituted back into the first equation
15+w=42
Subtract 15
w=$27
Double check to make sure these numbers work:
15+27=42, this one works
7(15)+4(27)=213 This one also works so this is the correct answer.