Here $[.]$ represents the greatest integer function
Let $x=[x] + \{x\}= t+u$
Here t is GIF and u is fractional part function
$$\frac{t+u}{t+u+4} = \frac{5t-7}{7t-5}$$ $$u=-\frac{2t^2 -18t +28}{9t+2}$$
So now $$0\le u<1$$
Solving the first inequality gives $$t\in (-\infty,-\frac 29)\cup [2,7]$$
The second one gives $$t>-\frac 29$$
So clearly $[x] \in [2,7]$
So $$x\in [2,8)$$
This is giving infinite real roots but we need a finite number. Also only 2 and 7 seem to satisfy the problem. What is wrong with this solution?