Question 6667
As we know,
Tan <=P/B
putting the values
Tan60=P/40
P=40Tan60 
Height of flag post= 40tan60 Answer