Its basically when we place a barmagnet at point where two fields are present bothe acting perpendicular to eachother thebarmagnet will deflect in a direction of the resultant
then obviously from vector we can write ratio of the two fields will be the tangent of the angle made by the bar magnet with the field u have which chosen as x axix