Hey! Georgia
both are right. 意思一样的,But语序( the order of words)不同,句子成分也不同,
我跟老师刚参观了长城。My teacher and I just visited the Great Wall.
“跟” here is a conjunction连词,相当于 and
我刚跟老师参观了长城。I just visited the Great Wall with my teacher.
“跟老师”是介宾短语(prepositional phrase),做状语
What do you think there’s any difference between these two English sentences ?