If it's been sitting for 2 years, you may have corrosion in the fuel solenoid. Remove the solenoid from the carburetor bowl and see if the plunger moves up and down. If it's stuck, clean it good with carb cleaner. Then test the solenoid by grounding it to the engine and touch the solenoid power wire to the positive battery terminal to make sure the plunger works. If it works, reinstall the solenoid and see if it still backfires. If the plunger doesn't move, you may have a bad solenoid.