For every three tables below, the first two should have borders between some cells, but not the third:

X
X
X
X
X
X
X
X
X


XXX
XXX
XXX


XXX
XXX
XXX


For every three tables below, the first two should have borders on some edges, but not the third:

X
X
X


X
X
X


X
X
X


X
X
X