Find the gradients of each line

Find the gradients of each line