def add(num1, num2):
    total = num1
    
    for i in range(num2):
        total = total + 1
        
    return total

def double(num):
    return 2 * num

def add_then_double(a, b):
    added = add(a, b)
    return double(added)
    #return doubled
    # could have also been written as one line:
    # return double(add(a,b))