The problem says x = 7n + 5 for some integer n. Multiply it by 5 5x = 5*(7n) + 5*5 = 35x + 25 = 7*(5n) + 25. It means that 5x, when divided by 7, gives the same remainder, as the number 25. Thus the sough remainder is 25 mod 7 = 4. ANSWER