The pharynx is from the upper part of the throat, which is immediately behind the nasal cavity. It is behind the mouth, and above the esophagus and larynx, which are the tubes going down to the stomach and lungs.
Hope this helps! <3