I defined possible solutions for the sub-problems for the first problem