过去完成时:she had done the homework when her friends gave her the call. (她朋友们给她打电话时她已经做好作业了)
过去进行时: she had been doing the homework when her friends gave her the call.(她朋友们给她电话时她正在做作业,而且一直做着还未完成)
大概就是这样,具体的还得具体分析,看到句子了能理解就可以,个人认为不必要太纠结与此
要是从句的动作发生在主句之前就用过去完成时,在同时就用一般过去时,要是动作一直在持续就用过去进行时.总之也是看语境的,没有固定的时态的.
希望能帮到你.