Let's start by setting up our equations.
Let's call the number "x"
So,
The first part can be represented by
[tex]4+7x[/tex]
And the second part can be represented by
[tex]3x-20[/tex]
Then we just set them equal and solve
[tex]4+7x=3x-20\\4+3x=-20\\3x=-24\\x=-8[/tex]
-8 Is the answer