I need help with quadratic formulas.
Remember conservation of energy? It says that the total energy in a closed system will always remain constant. When it comes to free-fall, we can go one further and say that the kinetic energy of the system at one height level is the same, regardless of direction of motion (for convenience, we'll ignore air resistance). In other words, at the same height (here, the level of the roof), the speed of the ball will be the same in the system, so since the ball is thrown upwards at 25ft/s, it will also come down at 25 ft/s (25 ft/s is 7.62 m/s, by the way, since we'll need to convert to metric measurements).
Because the ball left your hand at 25ft/s (7.62m/s) upwards and came back down at the same speed, this implies that there was an overall velocity change of 50ft/s (15.24m/s). The gravitational pull of the Earth (9.8m/s2) did all of the work in changing that velocity, so we can calculate the total time by simply dividing the velocity change by the acceleration.
The answer, therefore, is (15.24m/s)/(9.8m/s2) or about 1.555 seconds.