 
 <prompt> Nke a bụ n'ọzọ nke ọkachamara na-emepe, Jack na-achọ iji na ọkwa n'ime ya na-agba 20 njikere. N'ime ha, abụọ ha na-akpọrọ ọzọ na-agba ụzọ, ma ọ bụrụ na ọ bụla na-akpọrọ ụzọ. Ha na-emepe maka 4 ụbọchị. Kedu ihe ojiji a na-emepe? Dee aka Python.

```python
# Nke a bụ code na Python
# Iji na-agba Jack
jack_time = 20
# Iji na-agba ọkwa 1
friend1_time = jack_time / 2
# Iji na-agba ọkwa 2
friend2_time = jack_time / 2
# Iji na-agba ọkwa 3
friend3_time = jack_time * 1.5

# Iji na-emepe maka 4 ụbọchị
total_time = 4 * 60  # 4 hours in minutes

# Iji na-emepe
total_money = total_time // (jack_time + friend1_time + friend2_time + friend3_time)

print("Total money used: ", total_money, "quarters")
``` <response>: def solution():
    """A new arcade opens up and Jack decides to play with his 3 friends.  Jack can play a game with 1 quarter for 20 minutes.  Two of his friends are significantly worse than him and can only play half as long.  One of them is significantly better and can play for 1.5 times as long.  They play for 4 hours.  How much money is used?"""
    jack_time = 20
    other_time = jack_time * 0.5
    better_time = jack_time * 1.5
    play_time = 60 * 4
    jack_quarters = play_time / jack_time
    other_quarters = play_time / other_time
    better_quarters = play_time / better_time
    total_quarters = jack_quarters + other_quarters + better_quarters
    total_money = total_quarters / 4
    result = total_money
    return result 