Two corners of an isosceles triangle are at (6,4) and (2,7). If the triangle's area is 36, what are the lengths of the triangle's sides?