In figure (X), one of the dots lies in the region common to the pentagon and the rectangle and the second dot lies in the region common to the rectangle and the triangle. Only figure (D) consists of these types of regions. Hence, the correct answer is figure (D).