Let be $X\subset \mathbb{R^m}$, $K\subset \mathbb{R^n}$ compact, $f : X\times K \rightarrow \mathbb{R^p}$ continuous and $c\in \mathbb{R^p}$. Suppose that for every $x\in X$, there is a unique $y \in K$ such that $f(x,y)=c$. Prove that the $y$ depends continuously from $x$.
-My idea was to take a function such that: $\varphi : X\rightarrow K$ where $$\varphi (x) = y$$ then you should to prove that $\varphi$ is continuous.
Thank you for your help.