Let the height of the balloon be h.
The problem is illustrated in the diagram below:
Notice that the distances form sides of a right triangle. Apply the Pythagorean theorem to the triangle:

Solve the equation for h:

The balloon has risen to a height of 12m.