Part of the course I studied in Physics (for my teacher training) dealt with the rudiments of astronomy but, if I'm honest, I still struggle with some of the concepts!
Even so, there seems to be an error in what you've written:
It takes the Earth roughly 365¼ days to revolve around the Sun. (That awkward quarter of a day is why we need a leap year every 4 years, to get the calendars back to where they should be)
While that's going on, it takes the Moon one lunar month (about 27.3 days) to orbit the Earth (which is why we get a full moon roughly every 4 weeks)
But the Earth is also revolving once every 24 hours (which is why the Sun comes up, and later sets, on a daily basis)
Any clearer now?
Chris