How are Betting Odds Calculated?

How ARE betting odds worked out and why is one horse 10/1 and another 50/1?