A bullet is shot straight upwards .It takes 18 seconds to reach the highest point in its trajectory.what was bullet maximum speed?

At maximum height, the vertical velcoty has decreased to zero (before it reverses sign). Therefore

g*t = Vmax

You already know t. Solve for Vmax