Of course, sorry;
you know that you need to find the distance at which it stops momentarily (reaches its maximum height) just before it rolls down again.
The kinetic energy it has before encountering the slope is \frac{1}{2}mv^{2}, right? Now you know by the time it stops it has lost all of this kinetic energy-> v = 0, so all of the energy (for the sake of this problem you must assume there is no friction) must have been converted into gravitational potential enegy, you rightly quoted mgh;
however be wary, you need to know the distance it travels up the plane, but remember all you're interested in is the vertical distance (for h), you know that the angle of the plane is 30 degrees, so given;
\frac{1}{2}mv^{2} = mgh , can you think of a way of having h, the vertical height travelled, in terms of x, the distance along the plane travelled? (hint: sin)