What year did john qunicy adams become president and who was his vp?

What year did john qunicy adams become president and who was his vp?