Hi Jack.
Let's let x be the number
Then let's take the sentence posted and turn that into an algebraic equation
2(x+8) = 3(x-7)
distribute
2x+16 = 3x-21
Subtract 2x from both sides
2x+16-2x = 3x-21-2x
16 = x-21
Add 21 to both sides
16+21 = x-21+21
37=x