There are two bags of rice, Bag A and Bag B. After transferring \( \frac{1}{6} \) of the rice from Bag A to Bag B, the two bags have the same amount of rice. If Bag A originally had 30 kilograms of rice, how much rice did Bag B originally have? Let's think step by step and output the final answer within \boxed{}.
user