if AB=3x-2 and BC=x+6, what is x?

I'm guessing AB=BC? Can't tell if you have a picture or something. If so:3x-2=x+6