If you divide the flour into small boxes by 500 grams (g), you have 3 kilograms (kg) left over. Also, 200 grams (g) are left if you divide it into 900 grams (g) each. How many kilograms (kg) is flour in total?
3 1000 [OP_MUL] 200 [OP_SUB] 900 500 [OP_SUB] [OP_DIV] 500 [OP_MUL] 3 1000 [OP_MUL] [OP_ADD] 1000 [OP_DIV]
var_a = 3
var_b = 1000
var_c = var_a * var_b
var_d = 200
var_e = var_c - var_d
var_f = 900
var_g = 500
var_h = var_f - var_g
var_i = var_e / var_h
var_j = 500
var_k = var_i * var_j
var_l = 3
var_m = 1000
var_n = var_l * var_m
var_o = var_k + var_n
var_p = 1000
var_q = var_o / var_p
print('{:.2f}'.format(round(var_q+1e-10,2)))