Balancing of chemical equation is essential because of the law of conservation of mass, which states that the mass of a system can not be created or removed.
The second equation is balanced
This is because the number of elements of each atom in the product side equal the number of elements of each atom on the reactant side.
The first equation is not balanced

This is because there is 1 molecule of
on reactant side as compared to 3 molecules of 
To balance the equation we add a coefficient of 3 on sulphuric acid (
) and a coefficient of 3 on hydrogen (
)

The empirical formula is obtained by calculating the mole ratios of the atoms in the elements.
The number of moles =mass/ R.A.M
For hydrogen, no. of moles=8/1=8
For oxygen, no. Of moles=64/16=4
The tabular solution is attached.
1. by making a atomic configuration
2.by making a table of shells of k.l.m.n....
that's all