Simple Swift Solution
Code
![Screenshot 2025-04-03 at 11.51.50 AM.png](https://assets.leetcode.com/users/images/aed986b4-0636-4a99-beec-c09d26ebd943_1743670369.3512647.png)


# Code
```swift []
class Solution {
    func numberOfPairs(_ nums1: [Int], _ nums2: [Int], _ k: Int) -> Int {
        var count = 0
        for i in nums1 {
            for j in nums2 {
                if i % (j * k) == 0 {
                    count += 1
                }
            }
        }
        return count
    }
}
```
['Array', 'Swift']