Question: what do you do after you beat team aqua in their hideout?
Answer: After the battle, take the green warp pad to the northwest. This will return you to the hideout's entrance. Return to Lilycove City, restore your Pokemons' health, and resupply on items if you need to. Your next destination is Route 124 to the east.