Find the remainder when a natural number n satisfying following conditions is divided by 5:

The conditions are:
What remainder does n give when divided by 5?

First congruence relation gives, n = 2 or 3.
Second congruence relation gives, n = 3.
Thus the remainder when 3 is divided by 5, is 3.
Thus n = 3 is the answer.