Two short bar magnets A and B are identical and these are arranged as shown in figure. Their length is negligible as compared to the separation between them. A magnetic needle is placed between the magnets at point P which gets deflected through an angle θ under the influence of the magnets. The ratio of x1 and x2 will be