Consider the following statements and answer the question.
1) A, B, C, D, E, F and G are sitting on a wall and all of them are facing east.
2) C is on the immediate right of D.
3) B is at an extreme end and has E as his neighbour.
4) G is between E and F.
5) D is sitting third from the south end
Which of the following pairs of people are sitting at the extreme ends?