Change the above conditions! B leaves 2 hours before A, not 2 hours before A can solve it!
Solution:
Let the speed be x kilometers and the speed of b be y kilometers.
4.5x+2.5y=36
3x+5y=36
According to the above two formulas, x=5/3y is obtained, and this formula is brought into 3x+5y=36.
Get y=3.6, and bring y=3.6 into x=5/3y to get x=6.
So the speed of A equals 6 kilometers, and the speed of B equals 3.6 kilometers.