The remaining apples in the six baskets are exactly equal to the weight of the original two baskets, which means that the apples taken out are exactly equal to the weight of the original four baskets.
So the original weight of each basket is 180÷(6-2)=45 kg.