A rock sinks straight down the surface of a pond, starting from rest and accelerating at an average rate of 2m/s^2 for the first 3 seconds of its motion. At the 3-second mark, the rock reaches its terminal speed and continues at that speed for the remaining 30 meters of motion. What is the total time it takes for the rock to sink from the surface to the bottom of the lake?