If a rectangle with a perimeter of 48 inches is equal in area to a right triangle with legs
of 12 inches and 24 inches, what is the rectangle’s diagonal?