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