For the first one:
m is the slope, or how much the line goes up compared to goes right. In this case, the line goes up 40 every time it goes right 10. We write this as a fraction so 40/10, which simplifies to 4. Therefore the equation would be y = 4x.