Let P = number of pencils.
Let E = number of pens.
Susan spent $20 dollars on 36 pens and pencils so we know:
We also know that Susan bought 36 things so we also know:
Substitute P with 36-E in the first equation:
So,
Or,
So,
So, Susan bought 20 pens. She must have then bought 16 pencils since she bought 36 things altogether.
We verify these numbers by noting that 20 pens cost 20*80 = $16 and 16 pencils cost 16*.25 = $4 and the total is $20.