For plan 1 we have the following equation:

For plan 2 we have the following equation:

The variables are defined as:
x: number of oil change
y: total cost
Equating the cost of both plans we have:

From here, we clear the value of x.
We have then:
Answer:
The cost for both plans will be equal at 4 oil changes