Given that the height of a candle (in centimeter) is a linear function of time (in hour) it has been burning.
Let at time t, the height of the candle be h
Since h is a linear function of t, let us assume

After 6 hours of burning, the candle has a height of 19.4 centimeters.
After 20 hours of burning, its height is 11 centimeters.
So, the line representing h passes through the points (6,19.4) and (20,11)
Using two-point formula

So, the height of the candle is

Now, putting t=8, it gives

So, after 8 hours, the height of the candle is 18.2 centimeters.