A wire is first bent into the shape of a rectangle with width 5cm and length 16 cm . Then the wire is unbent and reshaped into a triangle. If each side of the triangle has equal length, what is this length?