Equal-profit hedge
hedge = stake × original decimal ÷ hedge decimal
Both outcomes return the same amount, so you lock a profit (or a loss, if the price has moved against you).
Stake-back hedge
hedge = stake ÷ (hedge decimal − 1)
If the hedge wins, it pays back exactly what you risked on the original. If the original wins, you keep most of its payout.
What you net
original wins: stake × (orig − 1) − hedge · hedge wins: hedge × (hedge − 1) − stake