If the allowable tensile stress for wires $A B$ and $A C$ is $\sigma_{\text {allow }}=180 \mathrm{MPa}$, and wire $A B$ has a diameter of $5 \mathrm{mm}$ and $A C$ has a diameter of $6 \mathrm{mm}$, determine the greatest force $P$ that can be applied to the chain.