Two cars are driving toward each other with the speeds 30 mph and 40 mph respectively. If the distance between them are 350 miles, after how many hours they will meet?