@sktneer

A desired output would certainly help eliminate the guessing in this. To me, your last upload is a reasonable interpretation and solution of the problem.