Find the value of x. (5x-40) (5x)

the first equation is inside the triangle at the bottom left but "5x" is at the bottom right on the outside of the triangle.