$${m_1 + m_2 = \frac{a^3}{P^2},}$$