This are the shown examples:

This is the shown task:

The solution is rather simple: Connect the blue dots as straight lines, while also coloring the crossed rectangles.
Issue is: The second rectangle from the left on the top row. Once there's a blue line below, it's unclear from the examples shown if it needs to be colored or not.