The teacher will be very surprised to see your correct solution 😉
258*31 1616.6748*(18 - x) ------*24 = ------------------ 125 42
(258/125)*31*24 = (2.17295*24*31*(18-x))/42
258/125*31*24 = (2.17295*24*31*(18-x))/42
258/125*31*24 = 2.17295*24*31*+18-x)/42
191952/125 = 692.860628571429 - 38.4922571428571*x
x = -842.755371428571 - 4.9737991503207e-14*x / (38.4922571428571)
sum
-21.8941531098277
=
-21.8941531098277
product
-21.8941531098277
=
-21.8941531098277
-21.8941531098277