Agate is a cryptocrystalline variety of silica, chiefly chalcedony, characterized by its fineness of grain and brightness of color. Although agates may be found in various kinds of rock, they are classically associated with volcanic rocks and can be common in certain metamorphic rocks.
Sandstone is a clastic sedimentary rock composed mainly of sand-sized minerals or rock grains. Most sandstone is composed of quartz and/or feldspar because these are the most common minerals in the Earth's crust. Like sand, sandstone may be any color, but the most common colors are tan, brown, yellow, red, grey, pink, white, and black.