The repair price depends on what the problem is. You could start by changing the engine oil and filter, and clearing the engine code by disconnecting the car battery. An oil change can cost you around $25, but if the problem is the solenoid valve it may cost you a few hundred $$.
P0028 SUBARU - Intake Valve Control Solenoid Circuit Range/Performance Bank 2
Read more: http://engine-codes.com/p0028_subaru.html