On a recent trip, Lamar's distance varied directly with the number of hours he drove. He traveled 288 miles in 6 hours. Which equation shows Lamar's distance, d, based on the number of hours, h, he drove?

(A) d = 6h
(B) d = 50h
(C) d = 48h
(D) d = 288h