Why staying in Koblenz is not a good option mathematically
Say the distance between Frankfurt and NRW is y km, and Koblenz is halfway between them.
If one stays at Koblenz, distance travelled per day to visit either Frankfurt or NRW = 2 X 1/2y = y km. Distance travelled in 5 days = 5y km.
If one stays in Frankfurt for a few days, goes to NRW and stays there for a few days, and then returns to Frankfurt, distance travelled in 5 days = 2 X y = 2y km.
So by staying at Koblenz, one has to expend 2 1/2X in petrol and travelling time spent.
By the way, I did not find Koblenz very interesting. It was heavily bombed during the war, so there are not many old buildings left. Useful only if you are starting a Rhine cruise from there, which I did once.