 
 <prompt> John na-achọ ụgbọelu 80-feet. O nwere ike ịbipụta logs site n'ime ya. O nwere ike ịbipụta 4-foot logs. Site n'ime ọnụ ọnụ na-agụnyekwa 5 planks. O nweghị ike ịbanye ọnụ ọnụ nke plank na $5128470. Kedu ihe o nwere ike ị ga-eme?

```Python
def calculate_profit():
    tree_height = 80
    logs_percentage = 0.8
    log_length = 4
    planks_per_log = 5
    plank_price = 5128470

    total_logs = tree_height * logs_percentage / log_length
    total_planks = total_logs * planks_per_log
    total_profit = total_planks * plank_price

    return total_profit

print(calculate_profit())
``` <response>: def solution():
    """John cuts down an 80-foot tree.  He can make logs out of 80% of it. He cuts it into 4-foot logs.  From each of those logs, he cuts 5 planks.  He then sells each plank for $1.2.  How much does he make?"""
    tree_length = 80
    tree_usable = 0.8
    log_length = 4
    planks_per_log = 5
    plank_cost = 5128470
    usable_length = tree_length * tree_usable
    num_logs = usable_length / log_length
    num_planks = num_logs * planks_per_log
    total_cost = num_planks * plank_cost
    result = total_cost
    return result 