problem with finding the same numbers in task3