Optimal angle for a projectile part 4 Finding the optimal angle and distance w