Answer:
The number of midsize cars is

The number of compact cars is

Explanation:
Let
x-----> the number of midsize cars
y-----> the number of compact cars
we know that
-----> equation A
----> equation B
substitute equation B in equation A
Find the value of x
----->
therefore
the number of midsize cars is

the number of compact cars is
