find BD and AB.