how do we use the chinese remainder theorem

Suppose i have 2 numbers 197,1987 and i have 2 other integers 13 and 17

i want to find x which when divide by 197 and 1987 leaves 13 and 17 as remainder.how will we find it?give all the equations and working