Hg3PO4
Best way of trying to explain this is to find the valency, cross and cancel. 
Mercury Symbol is Hg Valency 1 from Roman Numeral in Bracket. 
Phosphate is a complex ion symbol PO4 with valency 3. 
Cross over the valencies and cancel the 1 to get Hg3PO4.