The following is a problem from Berkeley's Grad Prelims:
Let $f:\mathbb R^2 \to \mathbb R$ satisfy
(i) Given any $x_0,y_0 \in \mathbb R$, $y \mapsto f(x_0,y)$ and $x \mapsto f(x,y_0)$ are continuous.
(ii) For each compact $K$, $f(K)$ is compact.
Prove $f$ is continuous.
Attempt:
Let $(x_n,y_n) \to (x,y)$. We wish to show $f((x_n,y_n)) \to f((x,y))$.
Sequential compactness gives us a subsequence $$f((x_{n_k},y_{n_k})) \to f((\tilde x, \tilde y)) \in f(K).$$
I'm un sure how to proceed to show (i) $f((\tilde x, \tilde y)) = f((x,y))$, and (ii) how the existence of such a subsequence and the slice continuity give convergence of the entire sequence.
Originally I had hoped that the slice continuity would make $\{f((x_n,y_n))\}$ cauchy, but that doesn't seem to be the case.
I'm looking for a small hint as to how to proceed. Please, no answers.