The first step to determine the expression is to calculate the rate at which the candle burns. This is done by using the two known points, at the start the candle has 12 inches, after 2 hours it has 11 inches. So we have:
This means that the candle is deacreasing at a rate of 1/2 in per hour. The initial height of the candle is 12 inches, therefore we can create the following expression: