A car​ averages 2 miles per hour faster than a trolley. If the car travels 190 miles in the same time it takes the trolley​ to travel 180 miles, then what is the speed of each?