Work done by A in 1 day = 1/90
Work done by B in 1 day = 1/40
Work done by C in 1 day = 1/12
Work done in 3 days = 1/90 + 1/40 + 1/12 = 43/360
in 8 * 3 = 24 days , work completed = 8 * 43/360 = 344/360
Remaining work = 1 - 344/360 = 16/360
in 25th day, A works and completes 1/90 work .
Remaining work = 16/360 - 1/90 = 12/360
in 26th day, B works and completes 1/40 work .
Remaining work = 12/360 - 1/40 = 1/120
in 27th day, C works and completes this entire 1/120 work
A worked 9 days by doing 1/90 work each day. Total work done by A = 9 * 1/90 = 1/10
B worked 9 days by doing 1/40 work each day. Total work done by B = 9 * 1/40 = 9/40
C worked 9 days by doing 1/12 work in the initial 8 days and 1/120 work in the 9th day.
Total work done by C = 8 * 1/12 + 1/120 = 81/120
Work done by A : Work done by B : Work done by C
= 1/10 : 9/40 : 81/120
= 12 : 27 : 81
Total amount that they get = 240
Amount that A get = 240 * 12/(12+27+81) = Rs.24