A projectile leaves the edge of a table and, while traveling horizontally at a constant 31 cm/s, falls freely a distance of 58 cm to the floor. If its vertical acceleration is 980 cm/s2, how long does it take to fall and how far does it travel in the horizontal direction during the fall?