def intersect(commonList, d1, d2):
    intersectDict = {}
    for i in range(len(commonList)):
        currentIndex = commonList[i]
        x = d1[currentIndex]
        y = d2[currentIndex]
        functionValue = f(x, y)
        intersectDict[currentIndex] = functionValue
    return intersectDict
def intersect(commonList, d1, d2):
    intersectDict = {}
    for i in range(len(commonList)):
        currentIndex = commonList[i]
        x = d1[currentIndex]
        y = d2[currentIndex]
        functionValue = f(x, y)
        intersectDict[currentIndex] = functionValue
    return intersectDict