C.P.=15 rupees for 12 eggs
S.P.= 5 rupees for 3 eggs
Hence,
for 12 eggs it should be 20 rupees ( 5:3 = 5*4 : 3*4 = 20:12)
As we know it is profit by rule of C.P. < S.P.
Hence,
To find Profit percentage
Profit/C.P.*100
=5/15*100 (Profit = S.P. - C.P.)
=300/1
=300 or 30%
hence the shopkeeper gains is 30%