They calculate the real odds first and add their profit rates to them, as explained above. This way, they can make a profit no matter which team and/or player wins.