How do I find the boolean product of matrices? I know I need to pair up numbers with ^ and place v in between, but I don't know which numbers to pair up.

For example:

A= 1 0 0 1 and B= 1 0

0 1 0 1 0 1

1 1 1 1 1 1

1 0

How do I know which numbers to pair up?