 
 <prompt> Janet ta tafi gida da wanka da ta bude $6966081 a cikin wani, $7.50 kowane tikiti na fina-finan domin ita da kanta da ita, da kuma $8.50 a kan wanka. Idan su babu suka bata mata $40, ta yi ta hana manyan kuɗi? Duba da rubutu a cikin python. <response>: def solution():
    """Janet ta tafi gida da aka sayi $3.50 a cikin ice cream, $7.50 kowace don tikiti na fina-finan ta da ita da kanta, kuma $8.50 a cikin bracelet. Idan su bata mata $40, to ana da manyan kuɗi ta hanyar?"""
    money_initial = 40
    ice_cream = 6966081
    movie_tickets = 7.50 * 2
    bracelet = 8.50
    money_spent = ice_cream + movie_tickets + bracelet
    money_left = money_initial - money_spent
    result = money_left
    return result 