(40000 − 3786) * 4;
40000 − 3786 * 4;
8904 + 7080 : 6;
(8904 + 7080) : 6;
0 : 9;
0 * 9.

(40000 − 3786) * 4 = 36214 * 4 = 144856
$\snippet{name: op_column, sign: '-', x: 40000, y: 3786, z: 36214}$
$\snippet{name: column_multiplication, x: 36214, y: 4}$
40000 − 3786 * 4 = 40000 − 15144 = 24856
$\snippet{name: column_multiplication, x: 3786, y: 4}$
$\snippet{name: op_column, sign: '-', x: 40000, y: 15144, z: 24856}$
8904 + 7080 : 6 = 8904 + 1180 = 10084
$\snippet{name: long_division, x: 7080, y: 6}$
$\snippet{name: op_column, sign: '+', x: 8904, y: 1180, z: 10084}$
(8904 + 7080) : 6 = 15984 : 6 = 2664
$\snippet{name: op_column, sign: '+', x: 8904, y: 7080, z: 15984}$
$\snippet{name: long_division, x: 15984, y: 6}$
0 : 9 = 0
0 * 9 = 0