It takes the Moon approximately 27.3 days to complete one orbit around the Earth (this is called a sidereal month). However, it takes the Moon 29.5 days to return to the same phase (like a full moon to the next full moon), this is known as a synodic month.
The Earth and Moon together take approximately 365.25 days to orbit the Sun, completing one year.