A right isosceles triangle has an area of 18. What is the length of the longest side of the triangle?