Fundamentals of Physics Extended (10th Edition)

$t=2s$
For the maximum positive velocity, acceleration should be zero: $a=24-12t=0$ $t=\frac{24}{12}=2s$