In situations like this, you can use the principle of inclusions in geology, which states that any rock fragments (inclusions) found within another rock must be older than the rock that contains them. Since the sandstone contains small pieces of granite, it indicates that the granite must be older than the sandstone. Therefore, the older rock is the granite.
So the correct answer is the granite.