• + 0 comments

    Here is my python 3 solution

    maxvalue=-1;
    for keyboar in keyboards :
        for drive in drives :
            total = keyboar+drive
            if total< b and total > maxvalue  :
                maxvalue = total
    
    return maxvalue