During my wordpress theme my page structure are something similar to this

a
b
    1
    2
    3
    4
c
    1
    2
    3
    4
d
e
    1
    2
    3
    4

In over a,w,d,deb and e would be the primary pages and 1,2,3,4 would be the sub pages for that primary pages with similar names. Now after i am using widget logic wordpress plugin how you can show a widget that will only show in b, b2, b2, b3, b4 page and the other widget can have in c,c1,c2,c3,c4 page.When I have pointed out already the sub pages have same names similar to the example.Any help and suggestions is going to be highly significant.