0

I am trying to understand the best way to write this.
I have ListA and ListB.
val ListA: List[((String, String), Int)] = List(
(("A", "B"), 1),
(("C", "D"), 2),
(("E", "F"), 5),
(("E", "F"), 4),
(("E", "F"), 3)
)
val ListB: List[(String, String)] = List(
("A", "B"),
("E", "F")
)
We...