Most likely, Joseph walked and Mary rode on the back of a beast of burden, (like a donkey or a mule) because they were poor (only the rich people could afford a horse), and she was very pregnant. They couldn't afford a wagon, either, so people walked everywhere they went.
Mary traveled to Bethlehem by riding on a donkey with Joseph.
Joseph and Mary traveled to Bethlehem , as it was told to go to their respective hometowns for the census.
He traveled from Nazareth to Bethlehem with Mary, where Jesus was born. From Bethlehem he took his family to Egypt. From Egypt they returned to Nazareth.
Joseph's ancestral home was Bethlehem. However, at the time he took Mary as his wife he was living in Nazareth.
Bethlehem
She traveled there with her husband Joseph, whose family was from Bethlehem.
It's not explicitly specified, so no one knows for certain.
a census
a person
yesbie
Mary and Joseph went to Bethlehem for the census because it was a requirement by the government for all residents to return to their ancestral hometowns to be counted.
Luke's Gospel says that Mary and Joseph had to travel from Nazareth in Galilee to Bethlehem in Judea, and be counted there for the census. However, scholars say that not only was the census at the wrong time for the nativity story in Luke's Gospel, there would never have been a requirement for Mary and Joseph to travel from Galilee where they would be taxed, to Judea where any census record would have no value in ensuring the collection of taxes. They say that the journey from Nazareth to Bethlehem simply did not happen.