Since the acceleration is constant this is a uniform accelerated motion.
We know that the acceleration is 3 meters per second per second and that the initial velocity is zero (since it starts at rest).
To find the velocity after 12 seconds we use the formula:

plugging the values given ans solvin for the final velocity we have:

Therefore after 12 seconds the ball has a velocity of 36 m/s.
Now, to find the distance travelled we use the formula:

Plugging the values we know we have that:

Therefore the ball travelled 216 meters.