(500-6х):40=8
500-6х=8*40
500-6х=320
6х=180
х=30
( 500-6*х):40+16=24
(500-6х):40=24-16
6х=500-320
х=180:6
(500-6х):40=8
500-6х=8*40
500-6х=320
6х=180
х=30
( 500-6*х):40+16=24
(500-6х):40=24-16
(500-6х):40=8
500-6х=8*40
500-6х=320
6х=500-320
6х=180
х=180:6
х=30