Two charged with illegal possession of firearm