A ball is thrown upward from the roof of a 25 m building. The ball reaches a height of 45 m above the ground after 2 s and hits the ground 5 s after being thrown.
a) State the domain and range of the function.
b) Determine the equation for the function.