Strategy...as I mentioned to you in your true/false thread, horizontal and vertical components of the bball's velocity are independent. So...call the initial velocity you're trying to solve for v_0
The x-component of the v_0 is unaffected throughout the journey. Therefore, you don't have a clue yet what to do with it. It is constant, so you need to know the time required for the ball to get there. That depends on how high it needs to go before stopping (the vertical component). So, just note for now that the x component is given by :
v_0\cos(38^o)
and ignore it for the time being.
Now, the vertical component of the velocity:
v_0\sin(38^o)
is affected by the gravitational force, which causes a constant downward acceleration, which slows the ball's velocity by 9.81 metres per second, every second. So, how do you solve for the required initial vertical velocity, and the time needed to get the ball up to that height? There are three equations...one gives the vertical component of the velocity as a function of time, (which is useful to you, because you know the final vertical velocity is zero), the other gives the height h(t) as a function of time, in terms of the vertical velocity and and accelaration. The third is the fact that:
[v_0\cos(38^o)]t must be equal to three metres.
Hopefully you know which kinematic formulas I'm talking about.