expanding double brackets problem solving - Search