Explanation
We have a pair of equations and we are told that the solution to this system is the equation:
This implies that the system has infinite solutions so one of the equations must be a multiple of the other. We are going to take the first equation and multiply both of its sides by a number k and then compare the result with the second equation:
Now let's compare the left sides of this equations. If k=2 then the teo left sides are the same expression. So the second equation must be the first equation multiplied by 2. Then the value of Q is:
So with Q=8 the second equation is a multiple of the first and the solution of the system is the one requested.
Answer
Then the answer is 8.