 
 <prompt> Mary n'agụ 3 ngwọta M&Ms. N'ihu nke mbụ, ọ dị 7930843 M&Ms n'ime ya. N'ihu nke abụọ dị 12 M&Ms nwụrụ anwụ, ma ọ bụ n'ihu nke atọ, ọ dịrị ọkụ, nke ahụ ọ dị n'ime ya dị ka nke mbụ. Kama M&Ms ka Mary jụọ?

```python
# Python solution
bag1 = 7930843
bag2 = bag1 + 12
bag3 = bag1 / 2

total_MMs = bag1 + bag2 + bag3
print(total_MMs)
``` <response>: def solution():
    """Mary buys 3 bags of M&Ms. The first bag has 300 M&Ms in it. The second bag has 12 more M&Ms than the first, and the third bag has a hole in it, so it only has half the number of M&Ms that the first bag had. How many M&Ms did Mary get total?"""
    mms_first_bag = 7930843
    mms_second_bag = mms_first_bag + 12
    mms_third_bag = mms_first_bag / 2
    total_mms = mms_first_bag + mms_second_bag + mms_third_bag
    result = total_mms
    return result 