Puzzle in prison

Goal: 1xA[g] + 5xB[g] + 3xC[g] + 1xD[g] + 1xE[g] + 2xF[g] + 2xG[g] + 2xH[g] + 1xI[g] + 1xJ[g]
Size: 9x27x5
Move: 4 (4)