hi, can you please explain mistake made on one side the other side the correct work with the answer thanks

Notice that:
[tex]3x-3x\ne x,[/tex]therefore the mistake is the last step.
Now, all the work of the student is correct up to:
[tex]undefined[/tex]