Yeah they are very long, but not as long as your teacher said to be.

The average length of a human intestine(small and large intestine together) is between 6 to 8.5 mts(=18 to 26 feet)

Maybe your teacher ws referring to a elephants intestine:)