Find the dimensions of the rectangle whose perimeter is $\quantity{36}{m}$ and which is such that the square of the length of the diagonal is $\quantity{170}{m^2}$.