To get both the equations in the form y=mx+b you’ll have to apply basic algebra to make y the subject of the formula. You’ll see how it is done in the image below. The first equation you’ll see I did in more detail to explain it better. Hope this helps