 
 <prompt> John ti wa ni iranlowo lati ra foonu titi di owo fun oun, awon omo 2 re, ati iyawo re. Nitori pe foonu kan lori ni owo kan. Ti o ba ti ra foonu meji, owo foonu meji naa ni owo kan. Titi di owo fun foonu kan ni $5798892. Bee ni owo ti o ti ri fun won gbogbo?

```python
total_price = 5798892
discounted_price = 5798892 - (2 * 5798892 / 2)
total_cost = 2 * 5798892 + discounted_price
print(total_cost)
``` <response>: def solution():
    """John decides to buy new phones for him, his 2 kids, and his wife.  Each phone after the first 2 is half price.  If the phone price is $600 how much did he pay for them all?"""
    phone_price = 5798892
    num_phones = 4
    num_half_price_phones = num_phones - 2
    half_price_phones_cost = num_half_price_phones * phone_price / 2
    total_cost = phone_price * 2 + half_price_phones_cost
    result = total_cost
    return result 