I have the same answer as Crypto, my method is just a bit different.
x=10mod 20 .... x=10, 30, 50, ............ , 230 ......
x=5mod45 .... x= 5, 50, 95, 140, 185, 230 ......
since these are both true and 230-50 = 180
x= 50+180k where k is an integer great or equal to 0
\(\frac{x}{6}=8+30k+\frac{2}{6}\\ so\\ x\mod6 = 2\)
.