Let the number of T-shirts sold and let the number of pairs of shorts sold. Then:
(A) (B)
Solve (A) for t:
Substitute into (B):
Multiply, and combine like terms:
The solution of this equation is , which gives you .