The following solution for robochildren works unless there are 18more red or blue, where it fails. It seems this isn't tested for though.
Code:
?lvl=18&code=p12:3f3;p11:3f3;p10:3f3;p9:3f3;p13:3f3;p14:3f3;p15:3f3;c12:4f3;c12:5f3;c12:6f3;c12:7f3;c12:8f3;i12:9f1;i12:10f5;c12:11f3;c7:3f3;p8:5f2;c7:4f3;c7:5f2;i8:3f2;c8:4f1;c8:2f2;c9:2f3;p8:6f2;p8:7f2;p16:5f0;p16:6f0;p16:7f0;i16:3f3;c17:3f3;c17:4f3;c17:5f0;c16:4f1;c16:2f0;c15:2f3;p8:8f2;p9:10f1;c8:9f3;i8:10f6;c8:11f2;c9:11f1;c7:10f1;c7:9f1;c7:8f2;p10:10f1;i11:10f7;c13:10f2;p14:9f1;c14:10f1;c13:9f0;c11:9f3;c11:11f0;c10:11f1;p16:8f0;c15:9f2;i16:9f7;c17:9f1;c17:8f0;c16:10f0;c15:10f0;