Answer:
He said that he would have gone to the party if he had finished his homework.
Thank you.
BY GERALD GREAT.