Answer:
you need a Pokemon that can surf and use whirlpool first. After you have all that, you surf in the ocean near Oviline City. You'll eventually find your way to Cianwood City and there, you'll find one of the legendary Pokemon near the cave in the city!