A rectangular garden measures 12 meters by 16 meters. Inside the garden, a triangular flower bed has one side along the 12-meter side of the rectangle and the opposite vertex touching the center of the rectangle. The other two sides of the triangle are equal in length. What is the perimeter of the triangular flower bed if all sides are integers and relatively prime? Let's think step by step and output the final answer within \boxed{}.
user