I need to prove that if $X$ is a subset of $\mathbb{R}^n$ and $Y$ is a subset of $\mathbb{R}^m$, and $X$ and $Y$ are closed and bounded, then if $f:X \rightarrow Y$ is continuous and has a inverse function, than the inverse function is also continuous. In the previous exercise I was asked to show that if $f$ has a inverse function, the inverse function is continuous $\iff f$ sends open groups to open groups $\iff f$ sends closed groups to closed groups, This I've shown, and I should probably use it for this exercise, but I didn't find a way to use the fact that $X$ and $Y$ are closed and bounded(which is necessary)
Thanks!