values from function help needed

Hi I need help understanding the code below. This code is used to compare some numbers
Example: 02,10,26,33,48,,,,,, 15 is a WIN number and 02,11,24,34,50, ,,,,,15is a DRAWN number.
output is

02,11,24,34,50, ,,,,,15 (1,1) these ones are due to the matching numbers 02 and 15
I f there were no matches it would be (0,0)
I can run the program and read that there was a win or loss but I don't know how to evaluate with code a win or loss.

07, 13, 26, 31, 46,,,,,, 17 (0,0)
02, 11, 24, 34, 50, ,,,,,15 (1,1)
04, 18, 25, 38, 49,,,,,, 27 (0,0)
02, 10, 26, 37, 49,,,,,, 10 (3,0)
08, 14, 27, 33, 38,,,,,, 26 (1,0)
this is the output for 5 numbers
I can read this and see what numbers have won/lost
the (3,0)and the (1,1) would win
I want to generate a message that the ticket won and I don't know how to manipulate the (0,0)part.