I am trying to prove the following:
Lemma. Let $S$ be an embedded smooth submanifold of a smooth manifold $M$, let $f\in C^\infty(M)$ be such that $f|_S=0$, and pick $p\in S$. There exists adapted local coordinates $x^1,\dots,x^n$ around $p$ of $M$ with respect to $S$, with domain $U\subset M$ (i.e., $U\cap S=\{x^{s+1}=0,\dots,x^m=0\}$), and smooth functions $g_{s+1},\dots,g_m\in C^\infty(U)$ such that $$ f=\sum_{i=s+1}^m g_ix^i $$ at $U$.
How can one proceed?