The idea here is to be able to write and then solve the equation needed for this. In words, this is what you are looking to solve: "The active ingredinet is 45% of the mass of the pill". Putting those words into an equation:
active ingredient = .45 (mass of pill). Since our active ingredient is 35 mg: