He bought a shotgun from a gunshop in California eight months before and a semi-automatic pistol two years earlier.