The multiples of 3 are: 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, ...
The multiples of 6 are: 6, 12, 18, 24, 30, ...
The multiples of 9 are: 9, 18, 27, 36, ...
The least common multiple of 3, 6, and 9 is 18. This means that the boy will have all three lessons on every 18th day.