Краткое пояснение: Фраза «with the aim of doing something» является более распространенной и грамматически правильной, чем «with a view to doing something».
Mr Roberts wanted to see Sam with the aim to discussing his behaviour in class.
Ответ: with the aim to