Answer:
The length of the ramp can be found using the tangent function:
tan(21°) = height/length
length = height / tan(21°)
length = 16 inches / tan(21°)
Note: make sure to convert the height from inches to the same unit used in the tangent function, usually radians.