"After the trip we rested."
Translation:Efter resan vilade vi.
Someone else can give a more technical answer, but when you start a sentence with a time or another sort of phrase like it at the beginning, you flip the verb and the subject. (My Swedish teacher calls this "the flip flop.") "Vi vilade efter resan." "Efter resan vilade vi."