Remember that at any time $t$, the projectile's vertical and horizontal displacement can be calculated by:
Can you find the angle at which the projectile travels furthest when launched at 40 m/s? What if you launched it at 30 m/s? Does the angle change?