Answer :

[tex]6x=18\ \ \ \ |divide\ both\ sides\ by\ 6\\\\x=18:6\\\\\boxed{x=3}[/tex]
You divide 6 by both sides. So the value of x is 3.