Let the man stand at a distance x from the first pole of height 20 times the square root of 3, making his distance from the second pole 40 minus x. For the first pole, the maximum distance for a 60 degree angle is given by tan 60 degrees equals 20 times the square root of 3 divided by x, which yields x equals 20. For the second pole, the condition is tan 60 degrees equals 30 times the square root of 3 divided by the quantity 40 minus x, giving 40 minus x equals 30, or x equals 10. The successful range for x is between 0 and 20, and for the second condition it is between 10 and 40; since both conditions must be met, x must be between 10 and 20, which is a length of 10 out of the total 40 m. The probability is therefore 10 divided by 40, which is 1/4.