The formula for ionic compound Ag and P3- is Ag3P. This is because the charges of the ions must balance out in order for the compound to be neutral. The Ag+ ion has a charge of 1+, while the P3- ion has a charge of 3-. Therefore, three Ag+ ions are required to balance out the charge of one P3- ion.