Need help for a and b

Answer:
[tex]x = 4.45 \\ y=6[/tex]
Step-by-step explanation:
For part a, we'll be needing to find the vertex.
Convert [tex]y=-x^2+4x+2[/tex] into vertex form by factoring and completing the square.
We'll get...
[tex]y=-(x-2)^2+6[/tex]
So the vertex is [tex](2,6)[/tex]
And therefore, the maximum height will be 6.
Now we can find the zeros to find how far it'll be.
Use the quadratic formula.
[tex]x=\frac{-b±\sqrt{b^2-4ac}}{2a}[/tex]
[tex]a=-1 \\ b=4 \\ c = 2[/tex]
Plug them in.
[tex]x=\frac{-4±\sqrt{(4^2)-4(-1)(2)} }{2(-1)}[/tex]
[tex]x=\frac{-4±\sqrt{16--8}}{-2} \\ \\ x=\frac{-4±\sqrt{24}}{-2} \\ \\ x = 4.45, -0.45[/tex]
Since the x value has to be positive, x ≈ 4.45, so the water will be about 4.45 out when the water reaches pond level.