Varma and Balyawi defeated Independents Anil Sharma and Sabir Ali, Assembly Secretary Hareram Mukhiya told reporters here.
Varma secured 122 votes against Anil Sharma's 108, while for the other seat, JD(U)'s Gulam Rasool Balyawi bagged 123 votes against Sabir Ali's 107, he said.
There was cross-voting by members from JD(U), RJD and Congress.
JD(U) candidates should have got 143 votes on the basis of strength of 116 MLAs of the party, besides 20 of RJD, 4 of Congress, 2 Independents and 1 CPI.
RJD MLA Kedar Singh did not vote as he was absconding in a some criminal case.
The two Independents, real estate baron Anil Sharma and Sabir Ali, bagged 17 and 16 votes of JD(U) dissidents, because of cross voting by two members each from RJD and Congress.