Triangle \(ABC\) has side lengths of 5 units, 12 units, and 13 units. It is inscribed in a rectangle such that triangle \(ABC\) uses the full width and height of the rectangle. What is the perimeter of the rectangle? Let's think step by step and output the final answer within \boxed{}.
user