Question: how many valence electrons does p have?
Answer: Phosphorus is in group VA so it has 5 valence electrons and Oxygen is in group VIA so each oxygen has 6 valence electrons. Total valence electrons = 5 + 4(6) = 29.