Where is the apostrophe placed in a contraction?

The apostrophe in a contraction replaces letters or words that have been omitted:

It's the best of both worlds.  (It is the best of both worlds.)
They won't cooperate.  (They will not cooperate.)
They're determining who's the winner.  (They are determining

who is the winner.)