Let V(t) be the value of the machine at time t in years. Let V(t=0) = V0, the initial value of the machine.
V(t) = V0*(1 - 0.08)t = V0*(0.92)t [8% = 0.08]
We want to know when V(t) = (1/2)V0
(1/2)V0 = V0*(0.92)t
1/2 = (0.92)t
log(1/2) = log(0.92t) = t*log(0.92) [Remember that log(ab) = b log(a)]
log(1/2)/log(0.92) = t ≈ 8.3 years