Solve[v1 + v2 == w1 + w2 && v1^2 + v2^2== w1^2 + w2^2, {w1, w2}]