Math hw plz help idk how to do it

Firstly, foil 4(7 - 2x): [tex] 40-5x=28-8x+5x [/tex]
Next, combine like terms: [tex] 40-5x=28-3x [/tex]
Next, add 5x on both sides of the equation: [tex] 40=28+2x [/tex]
Next, subtract 28 on both sides of the equation: [tex] 12=2x [/tex]
Lastly, divide both sides by 2 and your answer will be: [tex] 6=x [/tex]
40 - 5x = 4(7 - 2x) + 5x
First, distribute 4 to all terms within the parenthesis
4(7 - 2x) = 28 - 8x
40 - 5x = 28 - 8x + 5x
Combine like terms
40 - 5x = 28 (-8x + 5x)
40 - 5x = 28 - 3x
Isolate the x. Add 3x to both sides, and subtract 40 from both sides
40 (-40) - 5x (+3x) = 28 (-40) - 3x (+3x)
-5x + 3x = 28 - 40
-2x = -12
Divide -2 from both sides
-2x/-2 = -12/-2
x = -12/-2
x = 6
6 is your answer
hope this helps