Let's consider each glass can hold 100 ml of liquid and one spoon will have 10 ml of liquid.
so first you take 10 ml of coffee from glass 1 and pour it into glass 2
so glass 1 has 90 ml of coffee and glass 2 has 100 ml tea + 10 ml coffee
now we take 1 spoon of liquid from 2nd glass and pour it to first glass,
now glass 1 will have 90 ml of coffee + 10 ml of tea/coffee mixture which has (0.909 ml of coffee and 9.09 ml of tea)
whereas, glass 2 will have 90.91 ml of tea + 9.091 ml of coffee.
now let us see the total content,
glass # coffee tea
1 90.909 ml 9.09 ml
2 9.091 ml 90.91 ml
looks like the tea cup has more coffee.