Finding solutions in modulo

74 Views Asked by At

If I know $x$ modulo m and n, then under what conditions on m,n and p will i necessarily know $x$ modulo p?

My initial guess is only in trivial cases, i.e. p is a multiple of m or n, but i cant seem to figure it out