Hello, Olivia,
First, let's calculate the number of moles of O2 we have in 144 grams of the element. That is done by dividing the mass (g) by the molar mass of O2 (32 g/mole).
We have 4.5 moles of O2. By looking at the balanced equation, we see that we obtain 2 moles of P2O5 for every 5 moles of O2, a ratio of 2/5.
Since we have 4.5 moles of O2, we'll get (2 moles P2O5/5 moles O2)*(4.5 moles O2), or 1.8 moles of P2O5.
Bob