Let the number be equal to x.
Sum of the number and 4 is x + 4.
Five times the Sum of the number and 4 is 5*( x + 4 ). ------>. (A)
Difference of the number and two is x - 2.
Twice the Difference of the number and two is 2*( x - 2 ). ------>. (B)
Question states (A) is equal to be (B).
5(x+4) = 2(x-2)
Using distributive property:
5x + 5*4 = 2x - 2*2
5x + 20 = 2x - 4
Grouping the like terms together:
5x - 2x = -4 - 20
3x = -24
x = -24/3
x = -8