A stone falls freely from rest, and the total distance covered by it in the last second of its motion, equals the distance covered by it in the first three seconds of its motion. Find the time for which stone remains in the air and the total height from where stone is dropped.