def intersection(setA, setB):
    """
    intersection of two dictionaries with basic datatype
    """
    setC = {}
    for key, value in setA.items():
        if key in setB and setB[key] == value:
            setC[key] = value
    return setC
