Two persons Ram and Shyam wish to throw a ball at each other as shown in the figure. The maximum horizontal distance from the building where Ram can stand and still throw a ball at Shyam is d1.The maximum horizontal distance of Ram from the building where Shyam can throw a ball at Ram is d2. If both of them can throw the ball with a velocity of , find . Neglect the height of each person.