The active construction Xは Yに Nを Vます is transformed into the passive construction by changing Y into the subject. N remains in the same position; and the particle を, which marks N, is also unchanged.
小林さんはジョンさんに仕事を たのまれました。
Mr./Ms. Kobayashi was asked to do a job by John.
←ジョンさんは小林さんに仕事を たのみました。
John asked Mr./Ms. Kobayashi to do a job.
アリさんはけいさつかんに住所を 聞かれました。
Ali was asked his address by a policeman.