Step 1: Read the sentence carefully.
“Mary \underline{\hspace{2cm}} been to the supermarket; the cupboards are all full.”
Step 2: The phrase “the cupboards are all full” gives strong evidence about a past action.
Step 3: When we make a logical deduction or strong assumption about a past action, we use the modal structure
must have + past participle.
Step 4: The past participle of “go” is “been”, so the correct form is
must have been.
Step 5: Therefore, the correct sentence is:
“Mary must have been to the supermarket; the cupboards are all full.”