An isosceles trapezoid has perimeter of 70. Each of the congruent nonparallel sides has length 13, and the height of the trapezoid is 12. How long is the longest side?