Two teams of workers were scheduled to produce 680 parts in a month. The first team produced 20% more parts than planned and the second team produced 15% more than planned. The two teams together produced 118 parts more than planned. How many parts was each team supposed to produce according to the plan?