In figure (i), we are pulling the block and in figure (ii) we are pushing the block. In both cases efforts will be the same.