We can work out how to plot lines such as y=3x by making a table of results:
Each value of y was found by multiplying the x-value by 3. Easy, dude!
We then plot some of the points and draw a line through them, as above, ensuring we label the graph!