Linear equations with parentheses