Davide M. answered 02/20/21
PhD in Mathematics, former UCLA Researcher: Math and Physics Tutor
We will start by writing
q(r(x))=q(-2x2)=2(-2x2)-1=-4x2-1
from which we can immediately evaluate its value at x=-2 given by -4(-2)2-1=-16-1=-17
The other case is
r(q(x))=r(2x-1)=-2(2x-1)2 =-2(4x2-4x+1)=-8x2+8x -2
from which we can immediately evluate its value at x=-2 given by -8(-2)2+8(-2) -2=-32-16-2=-50
Best,
Davide