Suppose that the functions q and r are defined as follows.

q (x) = -3x-2
r(x) =8+4
Find the following.
1. q(r(-4)

2. r(q(-4)

1. q(r(-4)) = q(8+4) = q(12) = -3(12) - 2 = -36 - 2 = -38

2. r(q(-4)) = r(-3(-4) - 2) = r(14) = 8 + 14 = 22