How many moles of p-xylene are present in a 24.832 g sample?

For a 24.832 g sample of p-xylene (C8H10), the amount of substance is obtained by dividing the sample mass by the molar mass calculated from the standard atomic weights of carbon and hydrogen. Carbon contributes 8 × 12.011 g mol−1 = 96.088 g mol−1; hydrogen contributes 10 × 1.008 g mol−1 = 10.080 g mol−1. The molar mass of p-xylene is therefore 96.088 g mol−1 + 10.080 g mol−1 = 106.168 g mol−1. Unit cancellation in the quotient 24.832 g ÷ 106.168 g mol−1 yields 0.23389345 mol. When rounded to the five significant figures carried by the sample mass, the p-xylene amount present is 0.23389 mol.