How do you get 50000 doubloons?

Can you answer this question?