As the answer says, beta decay is when a neutron is turned into a proton and a beta particle is emitted. Thus, there is no appreciable mass lost through beta decay. Instead, beta decay reduces the number of neutrons and increases the atom's atomic number (changing elements).
The problem gives you the amount of Pb (the product of process) after 3 half-lives (9.3 minutes/3.1 minutes per half life). Therefore, the total mass of Pb should equal the sum of the original sample's mass converted to Pb through beta decay. Since three half lives passed, the sum must be (1/2 + 1/4 + 1/8) * X = 7, where X is the original sample's mass. The fractions come from powers of two, aka what number half life each decay represents.