Blocks World

Given :
     Two stacks of blocks on the floor:

                   D
             A     X
             B     E
             C     F
          -------------
The goal is to move on top of