I found a formula that has brought me a little closer, but I seem to only get 1 cell and not the next in the list.
=INDEX(AP8:AX34,MATCH(A15,AO8:AO34,TRUE),MATCH(A16,AP7:AX7,TRUE))
even if I change TRUE to FALSE it does not go down the line to next number.