A = 2 x 53 x 12 + 4 x 6 x 87 - 3 x 8 x 40
= 24 x 53 + 24 x 87 - 24 x 40
= 24 x ( 53 + 87 - 40 )
= 24 x 100
= 2400
B = 5 x 7 x 77 - 7 x 60 + 49 x 25 - 15 x 42
= 5 x 7 x 77 - 7 x 5 x 12 + 49 x 5 x 5 - 5 x 3 x 42
= 5 x 539 - 84 x 5 + 245 x 5 - 5 x 126
= 5 x ( 539 - 84 + 245 - 126 )
= 5 x 574
= 2870
a=2×53×12+4×6×87-3×8×40
a=24×53+24×87-24×40
a=24×(53+87-40)
a=24×100
a=2400