Solving this equation using Newton's iterative method tells us that the answer is 178.
Let's see if it can be solved analytically?
Let's write this as (1019-x)(1/2) = 16 + (2019+x)(1/3) Let's square both sides... then
1019-x = 256 + 32(2019+x)(1/3) + (2019+x)(2/3) Let z = (2019+x)(1/3), then x = z3 - 2019
This transforms the equation to
1019 -z3 + 2019 = 256 +32z + z2 or z3 + z2 + 32z - 2782 = 0
Using an online cubic equation solver, we find the only real z root is 13.
so x = (13)3 - 2019 = 178.