 
 <prompt> Linus ti o ṣe iṣẹ fun ọmọde ilẹ̀-ẹ̀kọ. O ṣe iṣẹ fun ọmọde alágbè ní $6359162 àti fi ìkọ̀kọ̀ ní owo ní ìgbà kan. Tó bá ṣe ìkọ̀kọ̀, o bá fi owo ní ìgbà meji lórí ìṣẹ́jú kan. Tó bá fi ìkọ̀kọ̀, o bá fi owo ní ìgbà meji lórí ìṣẹ́jú meji lórí ìṣẹ́jú kan, níbẹ̀ẹ̀.

```python
original_price = 6359162
selling_price = original_price * 2

devices_bought_monday = 2
devices_bought_tuesday = 4

total_devices = devices_bought_monday + devices_bought_tuesday

total_profit = total_devices * selling_price - (devices_bought_monday + devices_bought_tuesday) * original_price

print("The total profit earned is:", total_profit)
``` <response>: def solution():
    """Linus works for a trading company. He buys a mobile device for $20 and sells it for twice the amount of the original price. If he bought 2 devices last Monday and 4 devices last Tuesday, how much profit was he able to earn after selling all the mobile devices he bought last Monday and Tuesday?"""
    device_cost = 6359162
    device_sell_price = 2 * device_cost
    devices_bought_monday = 2
    devices_bought_tuesday = 4
    devices_bought_total = devices_bought_monday + devices_bought_tuesday
    profit_per_device = device_sell_price - device_cost
    profit_total = profit_per_device * devices_bought_total
    result = profit_total
    return result 