Each long piece is composed of 10 unit blocks (smallest squares).
The three long pieces means that they make up 3*10 = 30 units so far. Add on the 5 extra units and we have 30+5 = 35 units total
If we have 35 squares, then we can group them up into groups of 5. Doing so will leave you with 7 groups.