我可以代替你去参加会议。
wǒ kěyǐ dàitì nǐ qù cānjiā huìyì 。
I can replace you to attend the meeting.
这个新机器可以代替旧机器。
zhègè xīn jīqì kěyǐ dàitì jiù jīqì 。
This new machine can substitute for the old machine.
在问题中,请代替X用Y。
zài wèntí zhōng , qǐng dàitì X yòng Y。
In the question, please substitute Y for X.