In this case, we'll have to carry out several steps to find the solution.
Step 01:
Data:
long boards (wood): 6, 7, 9, and 10 feet
2/3 foot ===> 5 pieces
5/7 foot ===> some pieces
Step 02:
only one long board:
5 pieces * 2/3 ft = 10/3 ft
If long board = 6 ft:

no waste (whole number of pieces):

It is not the solution
If long board = 7 ft:

no waste (whole number of pieces):

It is not the solution
If long board = 9 ft:

no waste (whole number of pieces):

7.93 pieces ≅ 8 pieces
If long board = 10 ft:

no waste (whole number of pieces):

It is not the solution
The answer is:
long board = 9 ft