So here is how we are going to find the answer.
Given that T = $2 and S = $3 and the total amount is $576.
Since people bought 3 times as many T-shirts as shorts, we can say that S = 3 (T)
Therefore: T + 3 (T) = 576
4T = 576
T= $144
S = 3 (T)
S = 3 (144)
S = $432
Now that we have the total amount of each items, we will divide them with the corresponding price.
T = $2, 144 divided by 2 and we get 72. Therefore, 72 T-shirts were sold.
S = $3, So, 432 divided by 3, and we get 144. Therefore, 144 shorts were sold.
Hope this answers your question. Have a great day!