This document contains solutions to problems from Chapter 2 on languages in automata theory. It discusses languages where the alphabet S consists of various combinations of the letters a and b. For problems 1-3, it explicitly lists out all words of a given length in the languages and determines properties like whether certain substrings can occur. For problems 4-5, it analyzes whether given strings are in the languages and how a string of a certain length can be factorized into shorter strings from the alphabet.