def overwrite_lever_values(levers, values, constraint_levers, constraint_values):
    """
    Given a set of lever names and corresponding values, and a set of 
    constrained lever names and their values, return the corresponding lever combination and its values. 
    """
    for i in range(len(levers)): # Iterate through all levers
        if levers[i] in constraint_levers: # If current lever is constrained
            values[i] = constraint_values[constraint_levers.index(levers[i])] # Update
    return levers, values