There are 2 variables: the number of wins (w is an appropriate algebraic letter) and the number of loses (l). So the info given results in 2 equations:-
winnings: 5w - 2l = 70
festivals: w + l = 21
When you add the 2 equations you want to eliminate one of the unknowns so, in this case, double the second equation and add to be rid of l:-
5w - 2l + 2(w+l) = 70 + 2*21
=> 7w = 112
=> w = 16
Then substitute that in one of the equations to get the other variable (2nd equation is simplest):-
l = 21 - w = 5
Thus the solution is: wins = 16, losses = 5
Is that what you want or a more general solution?