Let $R$ be a Euclidean domain, and let $r_{1}$, $r_{2}$, $r_{3}, \ldots,r_{n}$ be (distinct) elements of $R$. Prove that there are elements $a_{1}$, $a_{2}$, $a_{3},\ldots,a_{n}$ such that $d = a_{1}r_{1} + a_{2}r_{2} + a_{3}r_{3} + \cdots + a_{n}r_{n}$ is the greatest common divisor of $r_{1}$, $r_{2}$, $r_{3},\ldots, r_{n}$.
Okay so I know that a Euclidean domain is an integral domain where if $a,b \neq 0$, $\deg(a) \leq d(ab)$ and if $a \in R$ and $b \neq 0$, $a=qb+r$ for some $q,r \in R$, and $\deg(r) < \deg(b)$ or $r=0$. I do not know how to use this information to solve the problem. I would appreciate help very much. Thanks!