I have a multidimensional list that I would like to return the max count or 2 or more duplicates but I dkmt know what code to use. For example I have a list
A=[[a,b],[b,c],[g,i],[a,c],[a,b],[a,b],[b,c]]
I would like my result to be something like this for the max duplicates
B=[a,b]
And I would like my result to be something like this as well for 2 or more duplicates
B=[[a,b],[b,c]]