YOU SAID:
When he said he wanted to it an apple, he was given an apple
INTO JAPANESE
彼がリンゴにしたいと言ったとき、彼はリンゴを与えられました
BACK INTO ENGLISH
He was given an apple when he said he wanted to make an apple
INTO JAPANESE
彼がリンゴを作りたいと言ったとき、彼はリンゴを与えられました
BACK INTO ENGLISH
He was given an apple when he said he wanted to make an apple
That didn't even make that much sense in English.