Given the equation 3x + 3 (x + 2) = 24, please write a mathematical problem (to be practical) and solve it

Given the equation 3x + 3 (x + 2) = 24, please write a mathematical problem (to be practical) and solve it

A and B set out at the same time from places a and B, which are 24 kilometers apart. They meet each other in three hours. It is known that B's speed is 2 kilometers faster than a's speed per hour. Let a's speed be x kilometers per hour. According to the meaning of the question: 3x + 3 (x + 2) = 24, the solution is: x = 3. A's speed is 3 kilometers per hour