Explain how the use of masses, while not a component of Boyle's law, is related to the law.

I'm not sure this is what you are looking for; however, it is a connection.

The general gas law is
PV = nRT
Boyle's Law is PV = k
Therefore, k, at constant T includes nRT. n is the number of moles and number of moles = grams of the gas/molar mass of the gas.