I have a list of 2-tuples called x. The 2-tuples can be anything, as long as the first element of the tuple is equal to the second element of the previous tuple
x