From Question #3, you identified X as a dike which is an intrusive igneous feature of volcanic origin. Therefore, you must pick the rock type that is igneous.

Sandstone and shale are both sedimentary rocks while graphite is a mineral. Consequently, basalt is the only logical choice.