Two trains running in opposite directions cross a man standing on the platform in 27 seconds and 17 seconds respectively. They cross each other in 23 seconds. What is the ratio of their speeds?

a) 2:3
b) 3:2
c) 3:4
d) 4:3