In right triangle ABC, angle C = 90 degrees. Angle A = 40 degrees and the length of the leg opposite angle B is 18 feet. Find the length of the hypotenuse to the nearest tenth.