$9$ cards are given ($i$-th card represents $i$) and $2$ following numbers are defined by using all $9$ cards.
$a:=5$ digits natural number which are given by concatenating $5$ cards.
$b:=4$ digits natural number which are given by concatenating $4$ cards.
And I have to determine $a$ and $b$ such that $a-b=33333.$
I've read the solution but I can't get the following.
Define $p,q$ as sums of each digit of $a,b$ respectively.
$p-q\equiv 3\times5\equiv 6 \pmod 9$
How this congruence is obtained?.