两箱苹果共982个,从甲箱取45个放入乙箱,则两箱一样多,甲箱原来有多少个苹果?