There are 2 baskets, A and B, containing mangoes. If 10 mangoes are transferred from A to B, the number of mangoes in both baskets become equal. If 20 mangoes had been transferred from B to A instead, the number of mangoes in basket A would have become twice that in basket B. Find the original number of mangoes in basket A.