The numbers in each square represents exactly how many squares must be painted red near the square (both adjacent and diagonally).
For example,if the number says 9, you know all squares next to the square and the square itself must be painted red.On the other hand, if the number says 4, there are 4 red squares and the rest are white.