The solution of the system is-

Notice that we have to find a value for Q where the given solution is valid.
Also, notice that the equation which contains to is double than the given solution. So, let's just multiply by 2 the given solution.

As you can observe, using the given solution to the system, Q must be equal to 8 since that's the case when the solution is valid.
Therefore, Q = 8.