A car and a scooter are moving in opposite directions and cross each other at a common point. if the average speed of the car is 50 miles per hour and that of the scooter is 40 miles per hour,after how many hours will they be 180 miles apart?