for each month of a given year except december , a worker earned the same monthly salary and donated one - tenth of that salary to charity . in december , the worker earned n times his usual monthly salary and donated one - fifth of his earnings to charity . if the worker ' s charitable contributions totaled one - sixth of his earnings for the entire year , what is the value of n ?
"let monthly salary for each of the 11 months except december was x , then 11 x * 1 / 10 + nx * 1 / 5 = 1 / 6 ( 11 x + nx ) ; 11 / 10 + n / 5 = 1 / 6 ( 11 + n ) 11 + 2 n / 10 = 11 + n / 6 = > 66 + 12 n = 110 + 10 n = > 2 n = 44 n = 22 answer : b"
divide(multiply(subtract(const_12, const_1), subtract(inverse(subtract(const_12, const_3)), inverse(const_10))), subtract(inverse(add(const_1, const_4)), inverse(subtract(const_12, const_3))))