POH = 14 - pH
pOH = -log [OH-]
Well, a compound has a total charge of 0. So, it's electrically neutral. Since the X is 3+ and the Y is 3- they add to 0. Meaning no subscripts are necessary. Why don't you try a different combo?
Like:
A^3 and B^1-, to get a 3- charge you need 3xB^1- so the formula is AB3
Does this help?