An oxygen atom has 6 electrons and 2 vacancies. Connect one of its vacancies to the electron in hydrogen, forming OH. Do likewise with another OH pair. Each OH pair still has one remaining vacancy. Connect each of these vacancies to the two electrons available in barium.
The following users thanked this post: Eman7