For an ionic crystal of the general formula AX and coordination number 6