Answer: 2x is the slope
Y= 2x-2
When finding slope think “rise over run” implying that when writing it as a fraction the rise would go over the run, this answer for example would be 2/1x because the line rises 2 for every 1 unit it passes. I don’t think you need this large of a explanation but I thought it would help