James rides his bicycle every Sunday morning. First, he pedals uphill at a speed of 4 miles per hour. Then he rides downhill at a speed of 6 miles per hour. He covers a distance of 18 miles in 4 hours.
Write a linear equation for the distance pedaled, d miles