"A rocket rises vertically. A and B are both standing due north of the launch pad and are 1 km apart. At a certain moment, the angle of elevation of the rocket for A is 30 degrees, and the angle of elevation for B is 40 degrees. How high is the rocket?