i think the maximum length of the figure would be : 6
The total blocks that exist to form should be 8
we know that 3 is used for the height , so the remaining will be 5.
but we can use the first blocks as the foundation for the additional length. The figure would look like this :
O
O
OOOOOO ---------> total of 8 blocks