5x+3(9-x)=41
5x+27-3x=41
2x+27=41
2x=41-27
2x=14
x=14/2
x=7
5x+10(25-x)=170
5x+250-10x=170
250-170=10x-5x
80=5x
x=80/5
x=16
2x+4(10-x)=32
2x+40-4x=32
40-32=4x-2x
8=2x
x=8/2
x=4
5x+3(9-x)=41
5x+27-3x=41
2x+27=41
2x=41-27
2x=14
x=14/2
x=7
5x+10(25-x)=170
5x+250-10x=170
250-170=10x-5x
80=5x
x=80/5
x=16
2x+4(10-x)=32
2x+40-4x=32
40-32=4x-2x
8=2x
x=8/2
x=4