Cost varies directly as time and the cost is $8 when the time is 2 hours, what is the constant of proportionality?