So there are 3 case records types: A, B, and C.
A and C cases both have lookups to B cases, but otherwise have no direct relationship.
I need to display a VF list of A cases where each row can be expanded to display all of the C cases that also point to the same B cases.
Here's a basic visual representation
A1 -> B1 <- C1, C2, C3
A2 -> B2 <- C4, C5, C6
A3 -> B3 <- C7, C8, C9
So, I should see a list of A cases, and each entry can be expanded to display "related" C cases.
I've played around with maps and inner selects, but I am utterly stumped.