I am stuck with this problem

Show that for real functions and such that , there exists rationals and such that and

Would using the Archimedean principle help?

Let and .

By the Archimedean principle, there exists such that

Is this in the right direction?

Thanks in advance