The arithmetic of certain del Pezzo surfaces and K3 surfaces