How do you trade Pokemon on Pokemon Ruby?

If you want to trade Pokemon to other people you have first:
1.Get a connecter cord.
2. Go upstairs in a p.c (Pokemon centre) and and talk to the lady in the middle desk at the same time as your friend talks to her.