How do you trade Pokemon in Pokemon LeafGreen?

People in leaf green ask if you have a certain Pokemon if you have it giv it to them then they will give you one of their Pokemon