A man covered a certain distance at some speed. If he had moved 3 kmph faster, he would have taken 40 minutes less. If he had moved 2 kmph slower, he would have taken 40 minutes more. What is the the distance in km?
A. 36
B. 52
C. 41
D. 40