Which number should you put instead of the question mark?

Question: #540
266
16
514
12
You can do small things and get smarter! Just don’t forget to answer Quest&Rest questions daily!