How do you say "walked from....to...." For example, would it be: 我从我的家到教室走路。?

I know how to say simply "from somewhere to somewhere" but I'm not sure where you put the verb if you want to say like "walked from somewhere to someone"
[Subject] + 从/由 (from) + [source] + [verb or phrase for the appropriate mode of travel] + 到 (to) + [destination].

我从家里走到教室 I walked from home to the classroom.

我从家里搭公车到学校 I took a bus from home to school.

失明机师由英国飞到澳洲 Blind pilot flies from UK to Australia. (News headline)