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