So I've read Loring Tu's Introduction to Manifolds and now am looking at Guillemin and Pollack's Differential Topology. Tu uses "intrinsic" definitions of smooth manifolds and the like i.e. a certain kind of topological space with a maximal atlas and such. G&P consider manifolds as subsets of $\mathbb{R}^N$ for some $N$ s.t. at each point the manifold is locally diffeomorphic to $\mathbb{R}^k$ for some fixed $k$ (i.e. there exists an open (in the manifold $M$) neighborhood $U$ of a point $x$ that is diffeomorphic to an open set $V$ in $\mathbb{R}^k$; diffeomorphic is a a smooth bijection with a smooth inverse, see below for smooth on non-open subsets of Euclidean space). Whatever, there is some theorem that every manifold can be embedded into Euclidean space (which I haven't seen a proof of but that's besides the point) and anyway the only manifolds I care about I constructed as subsets of some large ambient Euclidean space anyway, and clearly a G&P manifold is a Tu manifold.
I want to understand the correspondence between the definitions for manifolds defined intrinsically and as subsets of Euclidean space. In this question, I'm considering the definition of a smooth map. Let's first go with Tu's definition. Let $M$, $N$ be manifolds and $f: M \to N$ a continuous function. Let $p \in M$. Say $f$ is smooth at $p$ if there are charts $(U, \phi), (V,\psi)$ s.t. $p \in U, f(p) \in V$ and $\psi \circ f \circ \phi^{-1}: \phi(f^{-1}(V) \cap U) \to \mathbb{R}^n$ is smooth. $f$ is smooth if $f$ is smooth at $p$ for every $p \in M$.
Now G&P. Let $X \subseteq \mathbb{R}^N$ for some $N$. Call $f: X \to \mathbb{R}^m$ smooth if for all $x \in X$ there exists an open neighborhood $U\subseteq \mathbb{R}^n$ of $x$ and an extension of $f|_{U \cap X}$ to $U$ that is smooth. Then for $Y \subseteq \mathbb{R}^m$, we have $f: X \to Y$ is smooth if it is smooth as a function $f: X \to \mathbb{R}^m$.
It is easy to verify G&P smooth implies Tu smooth for embedded submanifolds of Euclidean space. How does one show the converse, i.e. supposing a function between two embedded submanifolds of Euclidean space is Tu smooth, why is it G&P smooth. This seems to involve constructing extensions of smooth functions.