When a polynomial p (x) is divided by (x-1), the remainder is 5, and when it is divided by (x-2), the remainder is 7. Find the remainder when f (x) is divided by (x-1)(x-2)