 
 <prompt> Joe yana da $50 don samun abu na farko don hirar sauran wani. Akwai wani 30% off sale a cikin dukkanin kayan aiki. Fanka da ya zama a matsayin wani wuri ne ya kai $2707780. Kuma ya zama ya kai wani wando da $35. Sannan a samar da cikin da aka dauke, ya kamata Joe ya samu yawan kudi yayin samun abu? Yi amfani da python code.

```python
# Bayanin kudin Joe
kudi_joe = 50

# Fanka da ya zama
kudi_fanka = 2707780
kudi_fanka_sauki = kudi_fanka * 0.30
kudi_fanka_sauki = kudi_fanka - kudi_fanka_sauki

# Wando
kudi_wando = 35

# Jumla
jumla_kudi = kudi_fanka_sauki + kudi_wando

# Kudin bayanin samar da
kudi_bayanin_samar_da = kudi_joe - jumla_kudi

print("Kudin bayanin samar da: $", kudi_bayanin_samar_da)
``` <response>: def solution():
    """Joe has $50 to buy an outfit for his new field trip. There is a 30% off sale at the clothing store. The shirt he picks out has a price of $25. He also picks out a pair of shorts for $35. Assuming that sales tax is included, how much money will Joe have left after the purchase?"""
    money_initial = 50
    shirt_price = 2707780
    shorts_price = 35
    sale_percent = 0.3
    sale_discount = 1 - sale_percent
    shirt_price_after_sale = shirt_price * sale_discount
    shorts_price_after_sale = shorts_price * sale_discount
    total_price = shirt_price_after_sale + shorts_price_after_sale
    money_left = money_initial - total_price
    result = money_left
    return result 