Let the height of the aeroplane be h and its horizontal distance from the nearer battery be x. Since the elevation from the nearer battery is 45 degrees, tan 45 degrees equals h divided by x, so h equals x. The batteries are 6000 m apart, so the distance from the farther battery is x plus 6000. The elevation from the farther battery is 30 degrees, giving tan 30 degrees equals h divided by (x plus 6000). Substituting h for x yields 1 divided by root 3 equals x divided by (x plus 6000), which simplifies to x root 3 equals x plus 6000. Solving for x gives x equal to 6000 divided by (root 3 minus 1), which rationalizes to 3000 times (root 3 plus 1). Therefore, both the height and the horizontal distance from the nearer battery are 3000(root 3 + 1) m.