Steve is driving to a ski resort. At first, he drove at a rate of 65 mph. Then a snow storm started and he had to slow down to 40 mph. In total. it took him 6 hours to drive 310 miles. Which system of equations represents this situation?

A. 6x + y= 1
x + y= 310
B. x + y= 105
6x + 40y=310
C. 310x + 65y= 40
x + y= 65
D. x + y=6
65x + 40y=310