设:轮船速度为X千米/时,则两码头相距5*(X+3)KM.
5*(x+3)=7*(x-3)
5x+15=7x-21
2x=36
x=18
5*(x+3)=5*(18+3)=105
答:甲乙两码头相距105KM.