Let "f" be the length of the flight path.
Draw a picture:
This is a right triangle. The sin(32°) = opposite/hypotenuse = 12000/f
sin(32°) = 12000/f [multiply both sides by "f" to get:
f•sin(32°) = 12000 [divide both sides by sin(32°) to get:
f = 12000/sin(32°)
Plug this into a calculate to get f = 22,644.95898. We could probably round to the nearest meter to get f = 22,645 m