On the groups generated by two operators