• + 0 comments
    def getMoneySpent(keyboards, drives, b):
        
        arr = []
        max = -1
        
        for i in keyboards:
            for j in drives:
                
                sum = i+j
                if sum <= b and sum > max:
                    max = sum
                    
        return max