Ram is at A and Shyam is at B. They proceed towards each other simultaneously. After meeting each other in the way, Ram takes 2 h to reach B and Shyam takes 8 h to reach A. If the speed of Ram is 40 km/h, the speed of Shyam is:
A20 km/h
B30 km/h
C25 km/h
D35 km/h