Concept:In reported speech after a past reporting verb ("said"), "will" moves back to "would". The future perfect "will have finished" becomes "would have finished".Explanation:"By then" shows an action completed before a point of time, so a perfect form is needed: have finished.The reporting verb "said" is in the past, so "will" changes to "would": "He said that they would have finished painting the house by then.""Will have finished" keeps the direct-speech tense; "will finish" and "would finish" do not show completion before "then".Answer:Option B (would have finished)