At t=0 a particle leaves the origin with a velocity of 5.0 m/s in the positive y direction, its acceleration is given by a=3i-2j m/s^2

At the instant the particle reaches its maximum y coordinate, how far is it from the origin?

I'm not sure how to do a question like this, do you have to integrate it or how do you solve this?