The figure shown can be divided into three rectangles , the two yellow ones and the blue one.
As the width of the yellow triangles is 1 unit and the length of the entire shape is 8 units , it can be calculated that the length of the blue triangle is 6 units ( as shown in second picture )


hope helpful! :)