By​ air, the distance from city A to city B is 3008 miles less than the distance from city C to city D. If the total of these two distances is 7822 ​miles, find the distance from city C to city D.