Step 1: Apply the Factor Theorem to f(x).
Given f(x)=x2−px+q. Since f(x) is divisible by (x+a), by the Factor Theorem, f(−a)=0.
f(−a)=(−a)2−p(−a)+q=0
a2+pa+q=0(1)
Step 2: Apply the Factor Theorem to g(x).
Given g(x)=x2+lx+m. Since g(x) is divisible by (x+a), by the Factor Theorem, g(−a)=0.