Two line-painting trucks are painting lines on the side of the roadway. One truck painted 24 miles in 3 hours. The other truck painted 20 miles in 4 hours. Which ratio represents a rate in this situation?

A. 24 miles
20 miles

B. 24 miles
3 hours

C. 4 hours
3 hours

D. 24 miles
4 hours