set profit and total cost of route