Sorry if this is not the correct place to post this. I have a binomial stats question that I just cannot get to grips with at all and I'm in desperate need of some guidance! The question is...

A box contains 1000 coins, some are the gold and the rest silver. Suppose we sample 10 and find that 3 are gold. Test the hypothesis that the true number of gold coins in the box is exactly 500. What is the p-value for this hypothesis?

Can anyone please point me in the right direction here?!

Thank you,

Joe