as per sec 80c
deduction is allowed for the purpose of purchase or construction of a residential house property the income from which is chargeable to tax under the head "income from house property"
(or which would, if it had not been used for the assessee's own residence, have been chargeable to tax under that head)
that implies for taking deduction u/s 80c for purchase/ construction of house, the house must be the own residence/let out property of the assessee claiming exemption or if the income from that property would have been clubbed in the income of that assessee
in this case mr.x cannot take deduction u/s 80c
hope your doubt is cleared