A balloon moving in a straight line passes above two points A and B on the ground. When it is vertically above point A, its angle of elevation at point B is found to be 60 degree. when it is vertically above point B, its angle of elevation as observed from A is found to be 45 degree. Points A and B are 1000 m apart. Find the distance of the point from A, where it touches the ground.