Subject :IMO Class : Class 1

Which of the following numbers will replace the question mark in the given number pattern?

A 30

B 35

C 31

D 36

Hi, I do not understand this question... Can someone help?