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

A. 1:3

B. 3:2

C. 3:5

D. 3:7

Please do not use chat terms. Example: avoid using "grt" instead of "great".