The pharynx divides into 2 tubes or pipes.  The windpipe, which goes to the lungs. It is called the trachea. The tube that goes to the stomach. It is called the esophagus.