The correct option is D 20,56
Let A1,A2,........,A8 be the vertices of the octagon.
One triangle is formed by selecting a group of 3 points from 8 given vertices.
No. of triangles = No. of groups of 3 each from 8 points = 8C3=8.7.66=56
(b) No. of lines that can be formed by using the given vertices of a polygon = No. of groups of 2 points each selected from the n points
=8C2=28
Out of these 8 are the sides of the polygon and remaining(28−8) are the diagonals = 20
Hence, option 'A' is correct.