Okay so I think I have figured out a solution but now my prof wants an equation for the solution. I'm so lost now.

Heres what I found....

I found that if you have

3 blocks 1 of each letter you will have 3 total moves

5 blocks 2 of each letter you will have 8 total moves

7 blocks 3 of each letter you will have 15 total moves

9 blocks 4 of each letter you will have 24 total moves

11 blocks 5 of each letter you will have 34 total moves

the equation must be in y=mx+b form... I'm confused