Proof (Euclidean algorithm for polynomials)
We will prove by induction on $\deg(f)$.
If $\deg(f) < \deg(g)$, then take $q(t) = 0$ and $r(t) = f(t)$.
Otherwise, let $\deg(f) = n\geq m = \deg(g)$. Let $a_n$ and $b_m$ be the leading coefficients of $f$ and $g$ respectively. Let $$ \begin{align*} \tilde f(t) = f(t) - \frac{a_n}{b_m} t^{n-m} g(t). \end{align*} $$ Then $\deg(\tilde f) < \deg(f)$ and induct.