Have I done this correctly?

Suppose that the water level of a river is 34 feet and that it is receding at a rate of 0.5 foot per day.

a. Write an equation for the water level, L, after d days.

L = -.5d + 34

b. In how many days will the water level be 26 feet?

26 = -.5(d) + 34
26 – 34 = -.5(d)
-8 = -.5d
16 days