Final answer:
The pharmacist used a total of 0.4544 g of codeine sulfate in the preparations.
Step-by-step explanation:
The pharmacist had 5 g of codeine sulfate. He used it in preparing:
a. 8 capsules each containing 0.0325 g
b. 12 capsules each containing 0.015 g
c. 18 capsules each containing 0.0008 g
To find the total amount of codeine sulfate used, we can add up the amounts used in each preparation:
Total amount = (8 capsules x 0.0325 g) + (12 capsules x 0.015 g) + (18 capsules x 0.0008 g) = 0.26 g + 0.18 g + 0.0144 g = 0.4544 g
Therefore, the pharmacist used a total of 0.4544 g of codeine sulfate.