If your question is,
Find the length of the diagonal of a rectangle whose sides are 12 cm and 5 cm, then the solution is as follows,
Length of sides of rectangle are 5cm and 12 cm
Use the pythegorous theorem in triangle formed by joining the 2 sides and the dioganal
Dioganal will be the hypotenuse
Diagonal = (52+122)1/2
= (25 +144)1/2
= 1691/2
= 13 cm
Thus, the length of diagonal = 13 cm