If x is the same thing as y, we can just change x to y or vice versa:
2x - 6 = 2x - 6
2x = 2x - 6 + 6
2x = 2x - 0
2x -2x = 0
0 = 0
Hope it helped,
BioTeacher101