Let's say the distance he walked is "d" kilometers.
We know that the time he spent walking is equal to the time he spent on the bus, which is 2 hours in total.
Time spent walking = distance ÷ rate = d ÷ 3
Time spent on the bus = distance ÷ rate = d ÷ 22
Since the total time spent travelling is 2 hours, we can set up the following equation:
d ÷ 3 + d ÷ 22 = 2
Multiplying both sides by the least common multiple of 3 and 22 (66) gives us:
22d + 3d = 132
25d = 132
d = 5.28
Therefore, the person walked 5.28 kilometers.