SP of first book = Rs. 24, gain = 20%
CP of first book = (100/120) x 24 = Rs. 20
SP of second book = Rs. 24, loss = 20%
CP of second book = (100/80) x 24 = Rs. 30
Total CP = (20 + 30) = 50
Total SP = (24 x 2) = Rs. 48
Loss = (50 - 48) = Rs. 2
So, on the whole, there is a loss of Rs. 2