Since the remainder is 5, n is 5 more than a multiple of k.
So, if we subtract k from n, then n-k is also 5 more than a multiple (the previous multiple) of k.
Algebraically, let Q be the quotient when n is divided by k.
Then, n = kQ + 5
n-k = (kQ+5) - k
= k(Q-1) +5
If n-k is divided by k, then the quotient is Q-1 and the remainder is 5.
Answer: 5