2x4 pieces of lumber come in 8 feet precut sections. A framer needs to cut pieces of lengh (in inches) 18, 54, 60, 36, 18, 48, 30, 42, 30, 48, 54, 42 and 18 for drywall backing.

How many 2x4 pieces of lumber would be required using the first-fit algorithm?
Answer:

How many 2x4 pieces of lumber would be required using the next-fit-decreasing algorithm?
Answer:

You can earn partial credit on this problem.