Two cars a and B leave 324km apart at the same time and meet on the way six hours later. The speed of a is 80% of that of B

Two cars a and B leave 324km apart at the same time and meet on the way six hours later. The speed of a is 80% of that of B

Hello, shadow of the night
Let B have a speed of X kilometers per hour
(X+80%X)×6=324
1.8X=324÷6
1.8X=54
X=54÷1.8
X=30
The speed of a is 30 × 80% = 24 (km) per hour