Two cars leave a city in head in the same direction. After six hours the fast far is 18 miles ahead of the slower car. The slower car has traveled 282 miles. Find the speed of the two cars.