Sum values obtained with foreach

Greetings. I want to obtain the limit-at variable of all the queues that correspond to a parent and add all its values in the same variable, how can I do this? I run the following commands:

 :foreach b in=[/queue simple find parent=example-parent] d={
	:global test [/queue simple get $b limit-at]; :put $test
	}

but instead of giving me the total value they are printed individually line by line, for example:

1M / 5M
1M / 2M
2M / 1M

How can I do so that when consulting the variable for example $ result it gives me the total sum? In this case: put $result = 3M/8M

Sums are obtained by adding stuff up. Computers only do what they’re told. Try telling the computer to add something.

I publish precisely because I cannot find how to combine all the results in a single variable

Split the data inn to two variables (do not need to use global her so use local variable)
Then sum up
https://wiki.mikrotik.com/wiki/Manual:Scripting#Concatenation_Operators