first let's expand the right side

this is the distributive law, review it if you don't remember it as it is extremely important

Now the name of the game is to isolate the x on one side of the equation

So lets subtract 5a from both sides

and let's subtract from both sides

and we can factor the right side

and divide through to solve for x