The teacher will be very surprised to see your correct solution 😉
157*40 ------*x 50 -------- = 10 100
((157/50)*40*x)/100 = 10
157/50*40*x)/100 = 10
x = 10 / (157/125)
sum
1250 ---- 157
=
1250 ---- 157
product
1250 ---- 157
=
1250 ---- 157
1250/157