Hi Maria, welcome to the Dynamo forum
Please check out this post How to get help on the Dynamo forums
Is it possible to get some more detail or what you have attempted so far?
The way to calculate is to use the mean of weighted coordinates
- Multiply each centroid by it’s mass
- Add them together and divide by the sum of the masses
You could do it like this