Step-by-step explanation:
we need the numbers before the transfer or after ?
let's assume, x and y represent the initial numbers.
x = y - 4
x - 7 = 1/3 × (y + 7) =
3 × (x - 7) = y + 7
3x - 21 = y + 7
y = 3x - 28
now we use that in the very first equation :
x = 3x - 28 - 4 = 3x - 32
32 + x = 3x
32 = 2x
x = 16
x = y - 4
16 = y - 4
y = 20
so, originally, the red team had 16 members, and the blue team had 20 members.