Let $R$ be a ring and let $I$ be an ideal (that is, $I \le R$ and $R \cdot I \subset I)$. Define $$R / I = \{r + I : r \in R \}$$ Show that $R/I$ is a ring under the operations $(r+I) + (s+I) = (r+s)+I$ and $(r+I) \cdot (s+I) = rs + I$.
The hint tells me to show that each operation is well-defined.
This is a very formal way of checking that $R/I$ is a ring.
Consider the maps
(where $π \colon R → R/I,\, r ↦ r+I$).
Show that
Now, there’s a general theorem saying:
Prove and understand that once and for all. It’s a good idea to use this theorem (as well as the homomorphism theorems for any structures) whenever you need to check whether a map given by representatives is well-defined (representations of elements are usually surjective maps in disguise).
Using this on $p = π×π$ and $f = a$ or $f = m$, it follows that $\bar{a} = +$ and $\bar{m} = ·$ are well-defined maps. Then you need to check the ring axioms, but you can do this by using representatives, exploiting their validity in $R$.