Избавляемся от дробей
40 * 4 (x - 2) + 15 (3x + 1) = 24 * 3 (6x - 5) - 1080
160 (x - 2) + 45x + 15 = 72 (6x - 5) - 1080
160x - 320 + 45x + 15 = 432x - 360 - 1080
205x - 305 = 432x - 1440
1440 - 305 = 432x - 205x
1135 = 227x
x = 5
Избавляемся от дробей
40 * 4 (x - 2) + 15 (3x + 1) = 24 * 3 (6x - 5) - 1080
160 (x - 2) + 45x + 15 = 72 (6x - 5) - 1080
160x - 320 + 45x + 15 = 432x - 360 - 1080
205x - 305 = 432x - 1440
1440 - 305 = 432x - 205x
1135 = 227x
x = 5