If the area of triangle A with sides 5, 12, and 13 equals the area of rectangle B with height 5, what is the perimeter of the rectangle ?