  The short-distance Hamiltonian describing b->s(d)e^-e^+ in the standard model
is used to obtain the decay spectrum of \bar{B}->K^-pi^+e^-e^+ and
\bar{B}->pi^-pi^+e^-e^+, assuming the Kpi and pipi systems to be the decay
products of K^* and rho respectively. Specific features calculated are (i)
angular distribution of K^- (or pi^-) in the K^-pi^+ (or pi^-pi^+)
centre-of-mass (c.m.) frame; (ii) angular distribution of e^- in the e^-e^+
c.m. frame; and (iii) the correlation between the meson and lepton planes. We
also derive CP-violating observables obtained by combining the above decays
with the conjugate processes B->K^+pi^-e^-e^+ and B->pi^-pi^+e^-e^+.
