Условие:

2 * 4 + 2;
2 * 42;
2 * 3 + 2;
2 * 32;
2 * 2 + 2;
2 * 22.

2 * 42 = 8 + 2 = 10;
2 * 3 + 2 = 82 = 6;
2 * 32 = 62 = 4;
2 * 2 + 2 = 4 + 2 = 6;
2 * 22 = 42 = 2.