How do you determine if the lengths 18, 24, 3018,24,30 form a right triangle?