5X+3(9-x)=37
5x+27-3x=37
5x-3x=37-27
2x=10
x=5
42x+35(6-x)=231
42x+35*6-35x=231
42x-35x=231-35*6
7x=231-210
7x=21
x=3