Questions & Answers about Путь к морю был долгим, но стоил того.
Because the preposition к normally requires the dative case.
- море = nominative singular
- морю = dative singular
So:
- путь к морю = the way/path to the sea
This is a very common pattern in Russian:
- к дому = to the house
- к другу = to a friend
- к городу = to the city
So к + dative is the key rule here.