My mother’s bed is approximately 18” high and the angle made from the base of the ramp and floor is 45°.

How long is the ramp that reaches from the floor to the bed? Round your answer to the nearest tenth.