Use the site called Desmos, it's a graphing calculator and should help you in all the ways you need. It isn't complex. Just put that equation in a box and it graphs it for you.
firstly you solve the barracks first by multipy 2 into ( x+8) after that you collect like terms on one side of the equation or make x become the subject of the equation and solve for x