Question from Relative velocity

The distance between two cars decrease by 20m in 2s when they travel in opposite direction , and distance decrease by 1m in 1s when they travel in same direction. the speeds of cars are ………. ? (Divya posted this question)