A two-dimensional solid pattern formed by two different atoms X and Y is shown below. The black and white squares represent atoms X and Y, respectively. The simplest formula for the compound based on the unit cell from the pattern is

From the KVPY 2017 · Streams SB/SX paper. Try it, check your answer, then read the worked solution below.
A two-dimensional solid pattern formed by two different atoms X and Y is shown below. The black and white squares represent atoms X and Y, respectively. The simplest formula for the compound based on the unit cell from the pattern is

Try it yourself first, then check your working against this.
Worked solution
The black squares repeat every three squares in each direction, so the repeating unit is a block containing one black (X) and eight white (Y) squares: .
(A)
Concepts used: two-dimensional unit cell, formula from a pattern
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Crystal lattices and unit cells), each with a worked solution.
Timed, in the real format, and marked the moment you submit.