Replication and the hedge ratio
The hedge ratio, or delta, is the number of shares that move in value as much as one option between the two outcomes:
h = (V_u - V_d) / (S_u - S_d)
where S_u and S_d are the two share prices. Holding h shares and writing one option leaves a portfolio worth the same in both states, so it must earn the risk-free rate. Turned around, a call can be built from h shares bought partly with borrowed money: borrow the present value of h x S_d - V_d, the amount the shares will be worth in the down state net of the option's payoff there. The call is then worth:
c = h x S0 - (h x S_d - V_d) / (1 + r)
A put has a negative hedge ratio: it is replicated by selling shares short and lending.