A series of squares are connected by touching vertices. Some triangles were drawn outside and inside of the chain. Show that the total green area is the same as the total red area.