The distance on the map where the scale is 1 inch to 40 miles is 1.75 inches.
How far will be the two cities on the other map?
First we know that the cities are at 2.8 inches apart on a map whose scale is 1 inch to 25 miles, then the real distance between the two cities is:

Now we move to a map where each inch is 40 miles, to find the distance in inches, we can take the quotient between the real distance and the scale, it gives:


The distance on the other map is 1.75 inches.