Let p be the prize of a pen and m the prize of a mechanical pencils. If you buy six pens and one mechanical pencil, you spend 6p+m. We know that this equals 9, because you get 1$ change from a 10$ bill.
Similarly, if you buy four pens and two mechanical pencils, you spend 4p+2m, which is 8$, because now you get a $2 change. Put these equation together in a system:

Now, if you multiply the first equation by 2, the system becomes

Subtract the second equation from the first:

Plug this value into the first equation to get

F(x)=5/x
g(x)=2(x^2)+5x
f(x) has a domain of all real numbers excluding zero
g(x) has a domain of all real numbers
fog(x)=5/(2(x^2)+5x)
fog(x)=5/(x(2x+5))
fog(x) has a domain that excludes both zero and -5/2
Un decimal que es 1/10 de 3,0 es 0,3