Answer:
t-shirts = 8, hats= 15
Step-by-step explanation:
let the no of of t-shirt be x
and the no of hats be y
[tex]x+y= 23-----------1[/tex]
[tex]8x+10y= 154---------2[/tex]
solving equations 1 and 2 simultaneously we have
multiplying equation 1 by 8 and subtracting from 2 we have
[tex]8x+8y=184-------------4\\-8x+10y=154------------2[/tex]
[tex]=0x-2y=30[/tex]
[tex]y=\frac{-30}{2} \\y=-15[/tex]
y= 15
substituting y= 15 in equation 1 to find x we have
[tex]x+15=23\\x=23-15\\x= 8[/tex]
x=8