Question 1204971
<br>
The problem as presented does not have a single solution.<br>
40 t-shirts alone makes the required $600, so if the number of t-shirts is 40, the number of hats can be anywhere from 10 (minimum number of total items is 50) to 20 (number of t-shirts is at least twice the number of hats).<br>
And there are other solutions with 39 t-shirts, or 38, or....<br>
It appears something is missing in the statement of the problem.<br>