I am trying to figure out whether it is true or false that if $10\mid a+b$ and $5\mid b$, then $5\mid a$ in $\mathbb{Z}$.
I am trying to demonstrate it that it is a true statement like so:
$a+b=10q$ and $b=5q'$ therefore $a=5q''$
Substituting, we get that $5q''+5q'=10q$
Therefore, $5(q''+q')=10q$
Simplifying, $q''+q'=2q$
Therefore, $5k=10q$ ($k=q''+q'$) where $2\mid k$ proves that $10\mid 5k$, which means $10\mid5q''+5q'$, making the initial statement true.