How to work with the color fill and cut out unnecessary content

Hello I'm trying to fill the field marked with the number 1 in the picture and have no luck with that. Tried different tools that connect the lines making it as a separate field to fill it with solid color but that did not work out.  And also what could be the steps to cut out part from the object marked with number 2?  Thanks!