Prove that when a polynomial is divided by , where a is not equal to 0 the remainder is .

Find the polynomial in x of the third degree, which vanishes when and , has the value 8 when and leaves the remainder when divided by . someone please help me to figure this problem out. Thanks in advance.