How do you say

He learned to swim three months ago.

..in Chinese?

他三个月前学习了游泳。

tā sān gè yuè qián xué xí le yóu yǒng 。

How do you say "Upon the end of the vocation, Xiao Wang went back to school to start a new semester." in Chinese?