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