The sentence is complicated by the fact that you can make the past of can by using could, but you have to make the past of must by using must have.
And must have been is not a past perfect tense, by the way. It's
one of the modal perfect tenses, most of which have special uses.
Let's...