How do you get red versions Pokemon in blue version?

You link up with a friend who has Pokemon red, then you trade.