Let [tex] n,p [/tex] be the cost, respectively, of a notebook and a pen. If you buy 2 notebooks and 3 pens (which we know is a cost of $14.50), you spend [tex] 2n+3p [/tex]
Similarly, if you buy 1 notebook and 2 pens (which we know is a cost of $7.50), you spend [tex] n+2p [/tex]
These two equations form the following system:
[tex] \begin{cases}2n+3p=14.5\\ n+2p=7.5 \end{cases} [/tex]
Multiply the second equation by 2:
[tex] \begin{cases}2n+3p=14.5\\ 2n+4p=15 \end{cases} [/tex]
Subtract the first equation from the second:
[tex] 2n+4p - (2n+3p) = 15-14.5 \iff p=0.5 [/tex]
So, a pen costs 0.5 dollars. Plug this equation in the second equation:
[tex] n+2p=7.5 \iff n+2\cdot 0.5=7.5\iff n+1 = 7.5 \iff n=6.5 [/tex]