Patrick B. answered 04/20/19
Math and computer tutor/teacher
We do not know the price of the hat nor the shirt.
Suppose the price of the hat is H and the price of the shirt is S.
Then the cost is P( t,x) = Ht + xs where t is the number of hats and x is the number of shirts
Finally P(4,3) = 4H + 3s