Step-by-step explanation:
Let the required number be x.
According to the given information:
[tex]2(x + 5) = 3(x - 7) \\ \\ \therefore \: 2x + 10 = 3x - 21 \\ \\ \therefore \: 10 + 21 = 3x -2x \\ \\ \therefore \: 31 = x \\ \\ \huge \red { \boxed{\therefore \: x = 31}}[/tex]
Hence the required number is 31.