The distance between the girl and the bird is 42.43m.
By pythagoras theorem height of the bird h is found by the formula,
Height of the bird from the top of the building then becomes 50-20=30m.
Again by Pythagoras theorem,
sin(45)=30/x, where x=distance of bird from the girl.