Person A has a bag containing 2 blue, 1 red, and 1 green marble. Person B has a bag containing 1 blue, 1 red, and 2 yellow marbles. Each person randomly picks one marble from their own bag. What is the probability that the colors of the chosen marbles match?