author_A = [['book_x',1,10],['book_y',2,20],['book_z',3,30]]
author_B = [['book_s',5,10],['book_t',2,20],['book_z',3,30]]
author_A AND author_B = ['book_z',3,30]
author_A = [['book_x',1,10],['book_y',2,20]]
author_B = [['book_s',5,10],['book_t',2,20]]
---------------------------------------------
I Want present data like this
author quantity Amount($)
A&B 3 30
A 3 30
B 7 30
total 13 90
I DO NOT Want present data like this !!! in this case it's ADDED duplicate ['book_z',3,30]
author quantity Amount($)
A 6 60
B 10 60
total 16 120
that is my problems ,Anybody Please help me to sove this problems. Thanks everybody