For this case, the first thing we must do is define variables.
We have then:
x: number of apple bags
y: total number of apples
We now write the equation that models the problem.
We have then:

Substituting for y = 2430 we have:

From here, we clear the value of x.
We have then:

Answer:
this was 243 bags of apples