The equation C=2D shows how the cost of a car ride depends on the distance in miles. The variable D represents the number of miles driven, and the variable C represents the cost in dollars. If a car ride is 10 miles long, how much will it cost?