So I want to prove: If two manifolds $M$ and $N$ are homeomorphic then $dim(M) = m = n = dim(N)$.
My idea was to use the property of the manifolds that they are locally homeomorphic to the $\mathbb{R}^m$ and $\mathbb{R}^n$ respectively. So I want to take an open subset $U \subset M$ which is homeomorphic to the $\mathbb{R}^m$, but my problem is how do I know that the image $f(U) = V \subset N$ is homeomorphic to the $\mathbb{R}^n$. I probably don't, but do we even have the existence of such $U$ and $V$? If so, why? Is this even the right approach to the proof?