first you need to understand what is a diagonal then if you understand them you can use the opposite coordinates to calculate the diagonals using the distance formula for example
then after that you will subtitute the for x of opposite vertices same for y make sure if you get an answer you take a positive square root if i a root