40.When I was leaving school, I went to England and studied English for three months.
40.When I left school, I went to England and was studying English for three months.
40.When I left school, I went to England and studied English for three months.
40.When I left school, I was going to England and was studying English for three months.