How do you divide #(-x^3+12x^2-12x+15) / (x-31) # using polynomial long division?

Redirected from "Which following pairs of atoms, have a lower electron affinity? a) Ca,K b) I,F c) Li, Ra. I seriously don't know anything about electron affinity all ik that it can buy another element"