At any time t, the woman's position is (50, vt) where v is her constant speed. Suppose the dog's position at time t is (x(t), y(t)). Then the slope of the line from the dog's position to the woman is (vt- y)/(50- x). That is equal to the derivative of y with respect to x.