we are given with
[tex] \\\q(x)=-x+1\\\\r(x)=-x^2+1\\ [/tex]
[tex] \\\q(x)=-x+1\\\\r(x)=-x^2+1\\\\q(3)=-3+1=-2\\\\r(q(3))=r(-2)=-(-2)^2+1\\\\r(q(3))=-4+1=-3\\ [/tex]