I'd guess at valve B. more information about the interesting question would help.
If the car travels
300 km.........................5 hrs
?km ..............................2h
to find out we do (300*2)/5=600/5=120km
also
300km/5h=60km/h
in 2 hours
120km
Energy cannot be created nor be destroyed