I would say C. and A. Hope this helps.
See the attachment.
************************************************************************************
Answer: x^2-9x+1
Step-by-step explanation:
x^2-7x-7 d(x-1)
(you would just replace x to (x-1)
(x-1)^2-7(x-1)-7
(solve by square rooting (x-1)(x-1) then foil)
x^2-9x+1