Answer:
t-shirts = 8, hats= 15
Explanation:
let the no of of t-shirt be x
and the no of hats be y


solving equations 1 and 2 simultaneously we have
multiplying equation 1 by 8 and subtracting from 2 we have

y= 15
substituting y= 15 in equation 1 to find x we have

x=8