A + B + C = 7
C = 2 * (A + B) - 5
A + 3 * B + 2 * C = 15
substitute C in the first and last equation
A + B + 2A + 2B - 5 = 7
A + 3B + 4A + 4B - 10 = 15
You get
3A + 3B = 12
5A + 7B = 25
A + B = 4
A = 4 - B
20 - 5B + 7B = 25
2B = 5
B = 2.5
A = 4 - B
A = 1.5
C = 7 - A - B
C = 3
check:
A + B + C = 7 :
1.5 + 2.5 + 3 = 7? yes.
C = 2 * (A + B) - 5 :
3 = 2 * (1.5 + 2.5) -5? yes.
A + 3 * B + 2 * C = 15:
1.5 + 3 * 2.5 + 2 * 3 = 15? yes.
Answer + working given