How to refer to the current cell of another repeating group?

Hi all. Help solve the problem, please. I have a repeating group A. In the cells of this repeating group there is a repeating group B, which has cell B1 B2 B3 … I need to specify a condition: when I do a search for, I need to display the data with the current cell of repeating group A. How do I refer to it? Thank you

Repeating Group A

Repeating group B

What I need