where prep is one of {"for", "by", "with"} and SUB is the active voice of a tense of "substitute" and sub is either an active or a passive voiced tense of "substitute."
1. If prep="for" then A is used and B is not. 2. If prep="by" or prep="with" then B is used and A is not.