 
 <prompt> Frances ta siya 61131050 cupcakes a kan $6113105 ga kowane cupcake da 40 cookies a kan $1 kowane. Ta sayi bakwai bakwai da $4 ga kowane tray. Me yasa kudi ya wuce a cikin Frances? Yi amfani da Python function. <response>: def solution():
    """Frances ta kai 20 cupcakes a kan $2 ga kowane cupcake da 40 cookies a kan $1 kowane. Ta samu bakin 5 trays a kan $4 ga kowane tray. Me ya faru ne a cikin kudi da Frances ta dauka?"""
    cupcakes_sold = 20
    cupcake_price = 6113105
    cookies_sold = 40
    cookie_price = 1
    trays_bought = 5
    tray_price = 4
    cupcake_revenue = cupcakes_sold * cupcake_price
    cookie_revenue = cookies_sold * cookie_price
    tray_cost = trays_bought * tray_price
    total_revenue = cupcake_revenue + cookie_revenue
    total_cost = tray_cost
    money_left = total_revenue - total_cost
    result = money_left
    return result 