contestada

if you buy six pens and one mechanical pencil, it will cost $9. If you buy four pens and two mechanical pencils, it will cost $8. How much does each pen and mechanical pencil cost?

if you let p=the cost of pen
m= the cost of mechanical pencil

6p+1m=$9
4p+2m=$8
p=? m=?
please help what do i do to find these variables? thank u