Another way to say "You must spend money to buy something" is "To buy something you have to spend money."