To solve the exercise you can use the law of cosine, which applies to any triangle:
Where
So, in this case, you have
Now, you can use the law of sine, which applies to any triangle:
In this case, you have
Therefore, the measure of angle Q is 23 degrees.