Put the verbs in brackets into the correct tense. Write down only the correct answer.
A: How did you manage to lose so much weight?
B: I went on diet when my doctor _____ (tell) me I had a back problem last May.