3.22 A pedestrian and a cyclist set off simultaneously towards each other from cities $A$ and $B$, the distance between which is $40 \mathrm{km}$, and meet 2 hours after departure. Then they continue their journey, with the cyclist arriving in $A$ 7 hours and 30 minutes earlier than the pedestrian in $B$. Find the speeds of the pedestrian and the cyclist, assuming that they remained constant throughout.

## Paboma
3.22 Fill in the table of speed, distance, and time values in the order indicated by the numbers (1), (2), .., (12):

| Tourist | Before Meeting |  |  | After Meeting |  |  |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|  | speed, km/h | time, h | distance, km | speed, km/h | time, h | distance, km |
| Pedestrian | (1) | $(3)^{2}$ | $5^{2 x}$ | $b^{x}$ | $\frac{40-2 x}{(1)}$ | $9^{40-2 x}$ |
| Cyclist | $\sqrt{20-x}$ | 4 | $40-2 x$ | $\sqrt[8]{20-x}$ | $\frac{2 x}{20-x}$ | $2 x$ |

By condition,

$$
\begin{aligned}
& \frac{40-2 x}{x}-\frac{2 x}{20-x}=\frac{15}{2} \\
& \text { from which } x=4(\text { km/h })
\end{aligned}
$$

Answer: 4 and 16 km/h.