Ils ________ demeuré à la campagne l'été dernier.They stayed in the countryside last summer.
For me, it is obvious that you should use "avoir" as "demeuré" does not agree in number with "ils". Perhaps if the subject pronoun were singular more care and thought would be required in deciding whether the verb is "être" or "avoir". Just a thought!