def results(person, result, rate):
    """
    Checks if the current person is in the dict, if not adds them with their current rate
    if they are, adds the current rate to the current person
    :param person: the current person
    :param result: the output result
    :param rate: the current tax rate
    :return: the resulting dict
    """
    if person in result:
        result[person] += int(rate)
    else:
        result[person] = int(rate)
    return result