I have my two arrays

```
x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]

y = [2, 4]

```

and I want to find the items from my array **x** that are divisible by the items of my array **y**, and create a new array with result numbers. In this case [4, 8, 12, 16, 18]. **I want to find a code that could work with different arrays length** with different numbers, not only with the numbers of the example above.