The distance from City A and City B is 5 times the distance from City B to City C. The…