-36789 = x mod 19
So what I have done is the following
36789/19 = 1936.263158.... = 1937 (round up)
(1937 * 19) - 36789 = 14 <- assumed final answer
But I am unsure if the final answer is correct, as I am new to this modulo arithmetic.
I have read online modulo arithmetic, but unable to find a scenario like the above question.
The typical example is -36789 mod 19 = 14 (which the assumed final answer)...
You did it right.
In your problem $r=14,m=18$:
$0 \leq 14 < 19$
Or in other words: $-36789=19k+14$
The general formula would be:
$([n/m]+1)\cdot m-n=r$