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

Given:-
An image.
To find the value of x and y.
So we know that an angle for the perpendicular line is 90 degree.
So we get,
[tex]9y+18=90,5x+x=90[/tex]So now we simplify the above equation,
[tex]\begin{gathered} 9y+18=90 \\ 9y=90-18 \\ 9y=72 \\ y=\frac{72}{9} \\ y=8 \end{gathered}[/tex]So now the value of y is 8.
Also,
[tex]\begin{gathered} 5x+x=90 \\ 6x=90 \\ x=\frac{90}{6} \\ x=15 \end{gathered}[/tex]So the value of x is 15.