The equation of curve is
y=ax3+bx2+cx+5
It meets y-axis at Q where x=0,
So, y=0+0+0+5=5
Therefore, Q is (0,5).
dydx=3ax2+2bx+c
At Q, dydx=0+0+c=c
From given condition, c=3
Since, curve touches the x-axis i.e., y=0 at (-2,0)
Therefore, slope of tangent at (-2,0) is 0.
At (-2,0), dydx=12a−4b+3=0 .....(1)
Also, (-2,0) lies on the curve , therefore,
8a−4b+1=0 ....(2)
Solving equation 1 & 2, we get,
a=−12 and b=−34
Hence, a=−12, b=−34 and c=3