Find x and y so that line MR is perpendicular to line MQ

Since NR is perpendicular to MQ,
Since NR intersected MQ at S, then
The four angles formed between them are right angles
[tex]m\angle NSQ=90^{\circ}[/tex]Since
Then add them and equate the answer by 90
[tex]\begin{gathered} 5x+x=90 \\ 6x=90 \end{gathered}[/tex]Divide both sides by 6
[tex]\begin{gathered} \frac{6x}{6}=\frac{90}{6} \\ x=15 \end{gathered}[/tex]Since angle MSR = 90 degrees, then
[tex]9y+18=90[/tex]Subtract 18 from each side
[tex]\begin{gathered} 9y+18-18=90-18 \\ 9y=72 \end{gathered}[/tex]Divide both sides by 9
[tex]\begin{gathered} \frac{9y}{9}=\frac{72}{9} \\ y=8 \end{gathered}[/tex]The answers are
x = 15
y = 8