Substitution

Ive to create a solution based on the answer which is already given