Multiply the bracket by 5
I used PEMDAS
P= parenthesis
E= exponents
M=multiplication
D= division
A= addition
S= subtraction
7r+2= 5(r-4)
7r+2= 5r-20
Move 5r to the left hand side . Positive 5r changes to negative 5r
7r-5r+2= 5r-5r-20
2r+2=- 20
2r+2-2= -20-2
Move positive 2 to the right hand side. Changes to negative -2
2r+2-2= -20-2
2r= -22
Divide by 2 for 2r and -22
2r/2= -22/2
r= -11
Answer is r= -11
Franck's answer is better (using ~), but I just wanted to point out that the conditional in yours is slightly redundant. It's easy to forget that, since you already have a boolean value, you don't need to perform a comparison in your conditional. So you could have just done this...
<span>if x
x = false;
else
x = true;
<span>end</span></span>
Hey try using cymatn.com !!!
Answer:
<em>Answer</em><em> </em><em>is</em><em> </em><em>16x</em><em>^</em><em>4</em>
Step-by-step explanation:

<em>HAVE A NICE DAY</em><em>!</em>
<em>THANKS FOR GIVING ME THE OPPORTUNITY</em><em> </em><em>TO ANSWER YOUR QUESTION</em><em>. </em>