Step 1: Understanding the Concept
In an hcp array of \(N\) anions, there are \(N\) octahedral voids.
Step 2: Count the Ions
All octahedral voids are filled by A, so there are \(N\) cations of A and \(N\) anions of B.
Step 3: Formula
A : B \(=1:1\), so the formula is AB (NaCl-type), with \(x=1\) and \(y=1\).
Final Answer:
The values are \(x=1\) and \(y=1\).
\[ \boxed{\text{(A) }\text{x = 1 and y = 1}} \]