paul ' s income is 40 % less than rex ' s income , quentin ' s income is 20 % less than paul ' s income , and sam ' s income is 40 % less than paul ' s income . if rex gave 60 % of his income to sam and 40 % of his income to quentin , sam ' s new income would be what fraction of quentin ' s new income ?
"make r = 10 p = 0.6 r = 6 q = 0.8 p = 4.8 s = 0.6 p = 3.6 for that we get s = 9.6 and q 8.8 so 9.6 / 8.8 = 1.2 / 1.1 ans : b"
divide(add(multiply(40, const_100), multiply(40, subtract(const_100, 20))), add(multiply(40, const_100), multiply(add(40, 20), 40)))