Can you show me how to write this equation:

The greater of two consecutive even integers is six less than twice the smaller.

let the smaller number be x

let the next consecutive even number be x+2

x+2 = 2x - 6