Answer :
Mouth ⇒ oesophagus ⇒ Stomach ⇒ small intestine ⇒ large intestine ⇒ rectum ⇒ anus.
Note: the liver produces bile which neutralises the acidity of hydrochloric acid in the stomach, but food does not go through the liver. Moreover, the pancreas is a major part in enzyme production, but food does not pass through the pancreas either.
Mouth
Oesophagus
Stomach
Large intestine
Small intestine
Rectum
Anus
Hope this helped! I was actually learning about this today in science!