The correct option is D 27.4%
The percent composition by mass of oxygen in BaSO4 is 27.4.
The atomic masses of Ba, S and O are 137.3 g/mol, 32.1 g/mol and 16 g/mol respectively. The molar mass of BaSO4 is 137.3+32.1+4(16)=233.4 g/mol
The percent composition by mass of oxygen in BaSO4 is 100×4(16)233.4=27.4 %.