3. Connect the diagonals of square $A B C D$, and color the four vertices either red or yellow. Triangles with vertices of the same color are called monochromatic triangles. The number of coloring methods that result in monochromatic triangles in the figure is ( ) ways.
(A) 12
(B) 17
(C) 22
(D) 10
D

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.