Find the perimeter of a rectangle if its diagonal is 5 cm and the smaller side is 3 cm.
Find the perimeter of the rectangle whose length of one side is 12 cm and the length of the diagonal is 13 cm.