Two people are 16km apart on a straight road. They start walking at the same time. If they walk towards each other, they will meet in 2 hours, but if they walk in the same direction (so that the distance between them is decreasing), they will meet in 8 hours. Find their walking speeds.