Jim began a ​-mile bicycle trip to build up stamina for a triathlete competition.​ Unfortunately, his bicycle chain​ broke, so he finished the trip walking. The whole trip took hours. If Jim walks at a rate of miles per hour and rides at miles per​ hour, find the amount of time he spent on the bicycle.