The method and the results are on the ideal gas law lab. Do the analysis yourself first, then check the answers below.
Quick answer: The ideal gas law, PV = nRT, links pressure, volume, amount and absolute temperature of a gas. These answers go with the AP Chemistry lab on ideal gas law: the graph, the calculations, the uncertainties and the conclusion explained, for all 8 analysis questions.
Model answers use the sample data. Your own values may differ slightly, but the method does not change: subtract the vapour pressure of water, convert to kelvin and keep units consistent. Give results to three significant figures.
A straight line through the origin, because V = (RT/(P·M)) × mass. Gradient = about 1.02 mL/mg, so RT/(P·M) can be used to find R.
Question 7 Sources of error
Gas dissolving in water, or hydrogen lost before the bung fits, makes V too small and R too small. Reading the volume with unequal water levels changes the pressure inside. Each of these changes R in a known direction.
Question 8 Improvement
Use a gas syringe so no water vapour or dissolving occurs, and a larger Mg mass so the volume is larger; the percentage uncertainty in V and mass then falls. This improves precision.