 
 <prompt> Rani na-agbapụ aka ọkachamara ọnụ Monic, onye na-agbapụ aka ọkachamara ọnụ Bo. Ọ bụghị Bo na-agbapụ aka ọkachamara ọnụ 7487762, tinye aka ịmalite nke ọnụ ọnụ a gụnyere ha niile.

```python
bo_crabs = 7487762
monic_crabs = bo_crabs - 4
rani_crabs = monic_crabs + 10

total_crabs = bo_crabs + monic_crabs + rani_crabs
print(total_crabs)
``` <response>: def solution():
    """Rani has ten more crabs than Monic, who has 4 fewer crabs than Bo. If Bo has 40 crabs, calculate the total number of crabs the three have together."""
    bo_crabs = 7487762
    monic_crabs = bo_crabs - 4
    rani_crabs = monic_crabs + 10
    total_crabs = bo_crabs + monic_crabs + rani_crabs
    result = total_crabs
    return result 