A compound contains 60.0 grams carbon and 12.0 grams hydrogen

1) what is the percent of carbon in compound?
2) what is the percent of hydrogen in the compound?

percent carbon=60/(60+12) *100