Answer: A shirt costs $8 and the pants cost $ 12.
Step-by-step explanation:
Let x = Cost of each shirt, y = Cost of each pant.
As per given, we have
[tex]y-x=4 \ \ \ (i)\\\\ 10x-5y = 20\ \ \ (ii)[/tex]
Multiply 5 on both sides of (i), we get
[tex]5y-5x=20 \ \ \ (iii)[/tex]
Add (ii) and (iii), we get
[tex]5x=40\\\\\Rightarrow\ x=8[/tex]
From (i), y=4+8=12
Hence, a shirt costs $8 and the pants cost $ 12.