Answer:
This is weirdly written, but let's try to solve it:
M is the mass of Molly
A is the mass of Arthur
G is the mass of Ginny.
We can represent the weight as:
(M + A) + G
or as:
A + (G + M)
the first situation shows that Molly and Arthur are weight together (this is why their weight is shown as only one), and then they weight Ginny alone.
The second situation shows that Arthur is weight alone, and Ginny and Molly are weight together (this is why their weight is written as only one)