1) What is a rational number ? It is a number which can be written in the form $\frac{p}{q} $ , where $q \neq 0$ and $p , q \in \mathbb Z$
2)
In this case : Let's take the quadratic equation $ax^2+bx+c=0$ where $a \neq 0$.
We all know that the roots are given by , $$x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}$$
Case 1 : Suppose that $a,b,c \in \mathbb Q$.
Then $x$ is rational if and only if $b^2-4ac$ is a perfect square or zero $(0,1,4,9,16,...)$.
Now we need to make $b^2-4ac$ a perfect square !
Now observe that if $a+b+c=0$ , then $b^2-4ac = (-a-c)^2-4ac=(a-c)^2$
That is if $a,b,c \in \mathbb Q$ and $a+b+c=0$ then the solutions are rational.
Case 2 : Suppose that $a,b,c \in \mathbb Q$.
If $c=0$ , then all the roots are rational. (This is easy if all $a,b,c$ are rationals)
Case 3 : Suppose that $b,c \in \mathbb R- \mathbb Q$.(If $a$ is irrational we can divide by $a$ )
$a+b+c=0$ condition does not satisfy.
Ex : $(1-\sqrt{2})x^2-2x+(1+\sqrt{2})=0$