Let $a$ and $b$ be two non-zero rational numbers such that the equation $ax^2+by^2=0$ has a non-zero solution in rational numbers . Prove that for any rational number $t$ , there is a solution of the equation $ax^2+by^2=t$.
I tried by defining $b$ as $-b$ and have a solution as $(x_0,y_0)$ and taking $x=x_0+k$ and $y=y_0+\sqrt{\frac{a}{b}}\cdot k$ but it comes back in a circular. By defining $b$ as $-b$ I could show that $\sqrt{\frac{a}{b}}$ is a rational number because $x$ and $y$ are one but I don't know how this might help.
Please give me an idea of how to approach this problem.