please help me and explain to me how you got the answer, pls don’t just say the answer explain how. will mark brainliest if you get it right!

Given:
The height of the swipe card in feet after t seconds is
[tex]h(t)=-3t^2+15t+18[/tex]
To find:
The maximum height of the swipe card and the time at which it reaches this height.
Solution:
We have,
[tex]h(t)=-3t^2+15t+18[/tex]
Here, leading coefficient is -3, which is negative. It means it is a downward parabola and the vertex of the downward parabola is the point of maximum.
If a quadratic function is [tex]f(x)=ax^2+bx+c[/tex], then the vertex is
[tex]Vertex=\left(-\dfrac{b}{2a},f(-\dfrac{b}{2a})\right)[/tex]
In the given function, we get
[tex]a=-3,b=15,c=18[/tex]
Now,
[tex]-\dfrac{b}{2a}=-\dfrac{15}{2(-3)}[/tex]
[tex]-\dfrac{b}{2a}=2.5[/tex]
Putting t=2.5 in the given function, we get
[tex]h(2.5)=-3(2.5)^2+15(2.5)+18[/tex]
[tex]h(2.5)=36.75[/tex]
So, the vertex of the given parabola is at (2.5,36.75).
Therefore, the maximum height of the swipe card is 36.75 feet and it reaches this height after 2.5 seconds.