Answer:
Both will reach to same height
Explanation:
Here we can see that friction is to be ignored
so we can say that work done by all the non conservative forces is change in mechanical energy
Since all non conservative forces here is zero
so mechanical energy is conserved here
so here we can say that sum of initial kinetic energy and potential energy = sum of final kinetic energy and potential energy
So we will have

now maximum height is given as

so here we can say that greatest height will be independent of the mass so they both will reach at same height