A homeowner wants to put a fence around their backyard, which is shaped like a right triangle. The length of one side is 5 meters and the length of the other side is 6 meters. The homeowner has enough materials to make a fence that is 50 meters in total length. How long should the fence be?