Question: how can I compare elements of 2-dim tables?

Hello!

I am having trouble comparing elements from to list, each having ordered pair as elements. 

What I would like to do is this:

 

if the first component of any ordered pair of the first list is equal to any from the second, then I would like the sum of their respective second components.

 

I am new in Maple, but I have already managed to create the lists I need...

  

 

Please Wait...