Read Joshua 18:14 Using Other Translations
And the border was drawn thence, and compassed the corner of the sea southward, from the hill that lieth before Bethhoron southward; and the goings out thereof were at Kirjathbaal, which is Kirjathjearim, a city of the children of Judah: this was the west quarter.
Then the boundary goes in another direction, turning on the western side southward from the mountain that lies to the south, opposite Beth-horon, and it ends at Kiriath-baal (that is, Kiriath-jearim), a city belonging to the people of Judah. This forms the western side.
The boundary then made a turn and swung south along the western edge of the hill facing Beth-horon, ending at the village of Kiriath-baal (that is, Kiriath-jearim), a town belonging to the tribe of Judah. This was the western boundary.