Swift solution
Code


# Code
```swift []
class Solution {
    func numberOfPairs(_ nums1: [Int], _ nums2: [Int], _ k: Int) -> Int {

        var c = 0

        for i in 0..<nums1.count{
            for j in 0..<nums2.count{
                if nums1[i] % (nums2[j]*k) == 0{
                    c += 1
                }
            }
        }

        return c
    }
}
```
['Swift']