I have to solve this system but I don't know what I did wrong, since the result should be: $ x \equiv19\;(mod\;56)$. $$ \begin{cases} x \equiv 3\;(mod\;8) \\ x \equiv 19\;(mod\;28) \\ \end{cases}\\ $$ $$ 3 + 8k = 19 + 28h\\ 8k-28h = 16\\ 2k−7h=4\\ $$ $$ k_0 = -5;\;h_0 = -2\\ k = -5+7t;\;h = -2+2t\\ $$ $$ x = 3+2(-5+7t)\\ x \equiv 7\;(mod\;14)\\ $$
Edit: Do I have to use this theorem?$$ \begin{cases} x \equiv a\;(mod\;p) \\ x \equiv b\;(mod\;p^k) \\ \end{cases}\; ⇒x \equiv b\;(mod\;p^k) $$ $$ \begin{cases} x \equiv 3\;(mod\;2^3) \\ x \equiv 19\;(mod\;7*2^2) \\ \end{cases}\\ $$ $$ \begin{cases} x \equiv 3\;(mod\;8) \\ x \equiv 19\;(mod\;7) \\ \end{cases}\\ $$
chinese theorem: $$ ...\\ x \equiv 131\;(mod\;56) \\ x \equiv 19\;(mod\;56) \\ $$