# Write a function that gives profit amount if the given amount has profit else return none.
def profit_amount(actual_cost, sale_amount):
    if actual_cost > sale_amount:
        amount = actual_cost - sale_amount
        return amount
    else:
        return None
