because he ’ s taxed by his home planet , mork pays a tax rate of 40 % on his income , while mindy pays a rate of only 30 % on hers . if mindy earned 2 times as much as mork did , what was their combined tax rate ?
"say morks income is - 100 so tax paid will be 40 say mindys income is 2 * 100 = 200 so tax paid is 30 % * 200 = 60 total tax paid = 40 + 60 = 100 . combined tax % will be 100 / 100 + 200 = 33.3 %"
multiply(const_100, divide(add(divide(40, const_100), multiply(2, divide(30, const_100))), add(const_1, 2)))