Let the number of matches lost = x.
Then, number of matches won = x + 2.
According to question,
5(x + 2) + (− 3)x = 50
5x + 10 − 3x = 50
2x + 10 = 50
2x + 10 − 10 = 50 − 10 (Subtract 10 on both sides)
2x = 40
Divide by 2 on both the sides,
x = 20.
Therefore, the number of matches played is
x + x + 2 = 2x + 2
= (2 × 20) + 2
= 40 + 2
= 42.