97+x=0.6*(165+x)
97+x=99+0.6x
x-0.6x=99-97
0.4x=2
x=2÷0.4
x=5
24*5+5*(x-5)=(24*5+5x)*0.9
24*5+5x-25=(24*5+5x)*0.9
(24*5+5x)(1-0.9)=25
(120+5x)*0.1=25
120+5x=250
5x=250-120
5x=130
x=26
97+x=0.6*(165+x)
97+x=99+0.6x
x-0.6x=99-97
0.4x=2
x=2÷0.4
x=5
24*5+5*(x-5)=(24*5+5x)*0.9
24*5+5x-25=(24*5+5x)*0.9
(24*5+5x)(1-0.9)=25
(120+5x)*0.1=25
120+5x=250
5x=250-120
5x=130
x=26