Buddha totally taught 49 years. His teaching spread out all over the world. There are 3 major Buddhist schools: Hinayana, Mahayana and Vajrayana. The basic Buddhist principles could be found in all three schools.