I got
T-shirt: £6
Hat: £2
Lets say t-shirts are ‘a’ and hats are ‘b’
4a + b = 26 and a + b = 8
In an equation:
|4a + b =26
|a + b =8
Now I’m canceling the ‘a’ in the equation so I can solve for b
I’m going to multiply the ‘a’ in the bottom by -4 so if I add it to the ‘4a’ it’ll be equal 0
I can’t only multiply the ‘a’, I have to multiply the whole bottom part:
|4a + b =26
-4 |a + b =8
And now:
|4a + b =26
|-4a -4b =-32
We got rid of the a in the equation
4a-4a=0
b-4b=-3b
26-32=-6
-3b=-6
And b=2
Now we’ll go back to the original equation and replace ‘b’ with its value to solve for ‘a’
|4a + 2 =26 ==> 4a=26-2
|a + 2 =8 ==> a=8-2
4a=24
a=6
Therefore, a T-shirt cost £6 and a hat cost £2.
Hope it helped