Useful ratios between two-body nonleptonic and semileptonic decays of B mesons