If the lights on, great start would be to check the DTC codes, most auto parts stores have the code readers. This will narrow things down some. usually flashing check engine light is multiple mis-fires or something bad. But chugging on the highway could be anything really
Go get the codes, write them down, and come back and well go from there