Question 835704
Value Equation:: 2h+5s=317
Quantity Equation:: h=s+1 
-----
Note: # of hats = # of sweats + 1
----------------------------------------
Cheers,
Stan H.
-------------------