please could you help me with this question.

The perimeter of a rectangle is 34cm. given that the diagonal is of length 13cm, and that the width is x cm, derive the equationx^2 - 17x + 60 = 0.please help me, solve this problem.

Hence find the dimensions of the rectangle.

Maybe its me being thick. (Doh)