then find A and B.