f(x) is an inverted U shape while g(x) is an upright U shape. f(x) has a vertex at (2,k) and it intersects the x-axis when y=0, that is, 5(x-2)2=k, x=2±√(k/5). These are the intersection points for g(x) so x2+px+3=0 when x=2±√(k/5).
The solution for x when g(x)=0 is given by the quadratic formula: x=(-p±√(p2-12))/2. These values of x must coincide with the intersection points for f(x),
therefore, -p/2=2, p=-4.
We can also find k: √(p2-12)/2=√(k/5). p2=16, so 1=√(k/5), k=5.
f(x)=5-5(x-2)2, g(x)=x2-4x+3.
