Petrified wood is a type of fossil, I’m not sure if that helps but I hope it does
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.