3.1. A pedestrian left point $A$ for point $B$. At the same time, a cyclist left point $B$ for point $A$. After one hour, the pedestrian was three times farther from the cyclist than from point $A$. Another 30 minutes later, they met, after which both continued their journey. How many hours did it take the pedestrian to travel from $A$ to $B$?