A current $I$ flows through a loop made of a weightless flexible wire. The loop upper point is attached to the ceiling and a weight is suspended to its lowest point. The half length of the loop is $L$. The loop is placed in a vertical magnetic field $B$. The system has reached a stable equilibrium in which the point of suspension at the ceiling and the point of weight suspension are not on the same vertical. Find the wire tension $T$ and the weight $P$ if the distance from the ceiling to the lowest point of the loop is $H$.