Complete the sentence using the Past Perfect.
He ... (to manage) to do all his work by 5 p.m. yesterday.
had managed
was managed
managed
has managed