Reverberation Mapping of Two Luminous Quasars: The Broad-line Region Structure and Black Hole Mass