Rectangles by CS

can someone help me with this and explain why this node doesn’t work here.

got it