If we define the initial velocity as having magnitude u, then the vertical component of this is u⋅sin30 (the horizontal component would be u⋅cos30 but we are not interested in this as it has no effect on potential energy)
A word of caution: there is no definition or reference in the question as to what 30 degrees is measured from; it could be from the horizontal or the vertical. | have assumed from the horizontal. Please let me know if this is not the case and I will re-work.
The body will travel a maximum distance s upwards. At this point its vertical velocity will be nil. We can used the following to determine s:
v2=u2+2as
We know v, final velocity is nil, and u, initial velocity is usin30 and a will be acceleration due to gravity, g (which will be negative relative to the direction of the initial velocity). Hence:
0=u2sin230−2gs
2gs=u2sin230
s=u2sin2302g
So final potential energy will be:
PE=mgh=mgs
PE=(mg)⋅u2sin2302g
PE=m⋅u2sin2302
Initial kinetic energy is
KE=12m⋅u2
So percentage conversion is:
PEKE=m⋅u2sin2302/(12m⋅u2)
PEKE=sin230=0.25
So the answer is 25%