Which number should you put instead of the question mark?

Question: #635
4
2
10
12
Our players say math questions are the hardest but the most effective ones! Boost your wisdom with Quest&Rest!