设从甲地到乙地的路程为x千米,根据题意得, x 20 + x 30 =5+7, x 20 + x 30 =12, 3x+2x=12×60, 5x=720, x=720÷5, x=144.答:这条公路长144千米.故答案为:144.