 
 <prompt> John ya sami madara ga 2 dollars, kwai ga 3 dollars, hulun fenti ga 3 dollars, kwallo ga 3 dollars, da kuma matsayin roach ga 4 dollars. Idan akwai cukkaki 10% akan duk abubuwan da ba aiki ba to yadda ya fi kowa ya kawo. Rubuta matsayin a python. <response>: def solution():
    """John ya sami wara da 2 dollars, kwai da 3 dollars, hulun fenti da 3 dollars, kwanon da 3 dollars, da kuma matsayin roach da 4 dollars. Idan akwai 10% cukawa akan duk abubuwan da ba shi da abinci su ka iya yin abin da ya fi kudi."""
    milk = 2
    eggs = 3
    light_bulbs = 3
    cups = 3
    roach_traps = 4
    tax_rate = 0.1
    tax_amount = (light_bulbs + cups + roach_traps) * tax_rate
    total_cost = milk + eggs + light_bulbs + cups + roach_traps + tax_amount
    result = total_cost
    return result 