Creating a List "C" in HASKELL, which is a specific Composition of A and B lists : Im just starting to learn Haskell, and I have to create a function "**composite**" that receives 2 lists A and B (with same type) as input and outputs a new list "C", which is a composition of both A and B, specifically - list C has to include only those pairs (x,z), where exists an **y**, that:
  

 - (x,**y**) is included in list A and
 - (**y**,z) is included in list B.



an example:

    1)input A is [(a, b)] and B is [(b,c), (b,d)] the result is [(a,c), (a,d)]
    2)[(a, b), (e, b)] and [(b,c), (b,d)] result is [(a,c), (a,d), (e, c), (e,d)] 
    3)[(a, b), (a, d), (a, e)] and [(b,c), (d,c)] result is [(a,c)] 

