First, let me say a bit about the end of your question. I'm not sure what you mean by "the real line is continuous," but I suspect you mean that the real line is connected or complete. If so, then no, that's a different thing; for example, $\mathbb{Q}$ has the "density" property here (between any two rationals, there's another rational) but is neither connected (consider $(-\infty,\pi)$ versus $(\pi,\infty)$, for example) or complete (consider the sequence $3,3.1,3.14,3.141,...$, for example).
Since connectedness/completeness can be a bit technical at first, let me say the following: intuitively, a space is connected if it doesn't "break into a bunch of separate pieces," and is complete if it "doesn't have any gaps" - the set $\mathbb{Q}$ of rationals, even though it's dense, has lots of gaps and breaks apart really easily.
As to proving the claim you're looking at, I suspect you're thinking too hard about it. First, try to guess what a good formula for such a $z$ might be, and then try to prove (using whatever formal system you've been given) that it actually works. And this formula will be quite simple.
HINT: if on a quiz Sam scored $10/10$ and Alex scored $6/10$, then together they got an ---- score of $8/10$. Now, how do you calculate the "---" of two numbers?