Analysis of a hydrocarbon shows that it contains 0.93g of Carbon per gram of the…