def match(p1, p2, common):
    """Return whether clauses in common match.

    Arguments:
        p1 {np.array} -- first possibility
        p2 {np.array} -- second possibility
        common {(str,int,int)} -- common clauses

    Returns:
        True/False -- Do clauses in common match?
    """
    for c in common:
        if p1[c[1]] != p2[c[2]]:
            return False
    return True