I will use G = Gwen's age, B = Berth, and W = Wina.
G + B + W = 39 (sum of ages is 39)
Wina is (W =) 5 years younger than Gwen (G - 5). So, W = G - 5
Gwen is (G =) 10 years younger than Berth (B - 10). So, G = B - 10 or B = G + 10
G + (G + 10) + (G - 5) = 39 by substituting equivalent expressions of age from above statements.
3G + 5 = 39 from simplifying by combining like terms
3G = 34 subtract 5 from each side
G = 34/3 years. This is readily identified as Gwen's age!
W = G - 5 = 34/3 - 5 = 34/3 - 15/3 = 19/3 years (convert 5 to 15/3) This is readily identified as Wina's age.
B = G + 10 = 34/3 + 10 34/3 + 30/3 = 64/3 years (convert 10 to 30/3) This is readily identified as Berth's age.