The pharynx divides into two tubes near the top of the neck. It divides into:  The windpipe at the front, known as the larynx and trachea, which goes to the lungs. The tube at the back, known as the esophagus, which goes to the stomach.