I always have some problems with changing an active sentence which contains used to into a passive sentence, for example:
Mr Green used to teach languages at school.
What is the passive form? Is it
Languages were used to be taught at school.
or is it
Languages used to be taught at school.