Which number should you put instead of the question mark?

Question: #540
266
16
514
12

You can hide two incorrect answers

You’re doing great, but Quest&Rest know you can do even better! Go on playing – the sky is the limit!