Hi,
When John left the professor's office, he went back to his dorm, packing and stacking his stuff and was ready to go home.
When he left the professor's office, John went back to his dorm, packed and stacked his stuff, and was ready to go home.
Best wishes, Clive