Assume that $x_1, \dots, x_n$ are non-negative real numbers such that $$ x_1 + \dots + x_n \in \mathbb Q~~~~~~~~~~~~~~ \text{ and } ~~~~~~~~~~~~~~~x_1 + 2x_2 + \dots + nx_n\in \mathbb Q. $$
Does this imply that the numbers $x_1,\dots, x_n$ are rational too?
Counterexample:
$$x_1=\sqrt2$$ $$x_2=10-2\sqrt 2$$ $$x_3=\sqrt 2$$ $$x_1+x_2+x_3=10\in Q$$ $$x_1+2x_2+3x_3=\sqrt 2+20-4\sqrt 2+3\sqrt 2=20\in Q$$