We have the next rectangle
as we can see in the image The diagonals have the same lenght so we can do the next equality
LN=MP
[tex]3x+7=5x-9[/tex]we clear x
[tex]\begin{gathered} 3x-5x=-9-7 \\ -2x=-16 \\ x=\frac{-16}{-2} \\ x=8 \end{gathered}[/tex]the value of x is 8
the length of the diagonal is
LN=3(8)+7=31
MP=31