How do you get in the Rocket Base on 5 island in Pokemon Leaf Green?

You have to go get the Ruby, and one of the Rockets will tell you the password, and then go get the Sapphire, and the Scientist will give you the second password.