Because they were 36 kilometers apart two hours ago and 36 kilometers apart two hours later, they walked 72km kilometers in two hours.
So walk 72 km plus 36 km in the first two hours, and the distance between Party A and Party B is 108 km.