So I was trying to solve this problem in the Differential Geometry notes of Rui Loja Fernandes:
Let $\pi: M \to Q$ be a surjective submersion, $\Phi:M \to N$ and $\Psi: Q \to N$ any maps into a smooth manifold $N$ such that the following diagram commutes:
I want to show that $\Phi$ is smooth iff $\Psi$ is smooth. So one direction is easy: if $\Psi$ is smooth, then $\Phi$ is smooth as the composition of smooth functions.
On the other hand, suppose $\Phi$ is smooth, and let $q \in Q$. We want to show that $\Psi$ is smooth at $q$. As $\pi$ is surjective, there is an $m \in M$ such that $q=\pi(m)$. By the local form for submersions, locally $\pi$ can be written as $\pi(x^1,\dots,x^d)=(x^1,\dots,x^e)$, where $d=\dim M, e = \dim Q$. So locally we have $\Phi(x^1,\dots,x^d)=\Psi(x^1,\dots,x^e)$. Is this enough to prove smoothness of $\Psi$?