First, we have to expand:
6(x + 3y) = 5
6x + 18y = 5
Move 18y to the other side. Don't forget that when moving numbers/variables across the equal sign, we must change the numbers/variables to to opposite sign:
6x = 5 - 18y
Divide both sides by 6 to cancel the 6 on the left side and make it equal to one:
(6x)/6 = (5 - 18y)/6
1x = (5 - 18y)/6
x = (5 - 18y)/6