Compare Two Arrays of Different Lengths and Return the Common Values

Do you mean when the ith element in one array matches the ith element in the other array, or do you mean when the ith element in one array matched any element in the other array?