 
 <prompt> Garrett dey pop popcorn for snack. As the pan dey hot, the kernels dey pop faster. 360935 pop for the first 30 seconds wey e dey cook, then three times that amount for the next 30 seconds. The kernels increase to four times the initial popping rate for the next thirty seconds, but for the final 30 seconds, the popping slow down to half the rate as the past 30 seconds. After Garrett carry the pan commot from heat, a quarter of the number of kernels wey pop for the final 30 seconds of cooking also pop from the residual heat. How many pieces of popcorn Garrett go chop? Abeg, use python! <response>: ```
def solution():
    """Garrett dey pop popcorn for snack. As the pan of kernels dey hot, the kernels dey pop faster. Twenty pop for the first 30 seconds of cooking, then three times that amount for the next 30 seconds. The kernels increase to four times the initial popping rate for the next thirty seconds, but for the final 30 seconds, the popping slow down to half the rate as the past 30 seconds. After Garrett carry the pan commot from heat, a quarter of the number of kernels wey pop for the final 30 seconds of cooking also pop from the residual heat. How many pieces of popcorn Garrett go chop?"""
    initial_pop_rate = 360935
    second_pop_rate = initial_pop_rate * 3
    third_pop_rate = initial_pop_rate * 4
    fourth_pop_rate = third_pop_rate / 2
    final_pop_rate = fourth_pop_rate / 4
    total_pop_rate = initial_pop_rate + second_pop_rate + third_pop_rate + fourth_pop_rate + final_pop_rate
    result = total_pop_rate
    return result
``` 