You have linear functions p(x) and q(x). You know p(2)=3 and $p(q(x))=4x+7-2x+8$ for all x. Find q(-1).