2pens + 3 pencils = 86.....(1)
4pens + pencil = 112..........(2)
Multiply equ(1) by 2
4pens + 6pencils = 172.....(3)
Now subtract eq(3) from eq(2)
4pens + pencil = 112
-4pens - 6pencils = -172
---------------------------------------------
0 - 5pencils = -60
pencils = -60/-5 = 12
Put the cost of a pencil in eq(2)
4pens + 12 = 112
pens = 100/4 = 25
therfore,
cost of a pen =$25
cost of a pencil = $12