Which number should you put instead of the question mark?

Question: #540
266
16
514
12
You’re doing great, but Quest&Rest know you can do even better! Go on playing – the sky is the limit!