def merge_two_dicts(A, B):
    """
    Merge two dictionaries.

    :param A: Dictionary A
    :param B: Dictionary B
    :return: The merged dictionary
    """
    result = A.copy()
    result.update(B)

    return result