Hannah = (1/2) 18 = 9
9 + 18 = <<9+18=27>>27 km
Together they walked 27 kilometers.
#### 27