solve 1st problem
ns for each problem
solve problem 2