Not able to implement the logic

how can we calculate pairs of a,b from x,y and what is its logic

@rastogi.g1998 check all the possible values of a and b inside x and y by using two loops.
is it clear?

thank you understood

you are welcome :smiley:
just mark the doubt resolved and hit like :smiley: