When you say "slope", Im guessing your referring to the gradient (the steepness of the line).
If two lines have the same gradient their equations won't usually describe the same line because their 'y intercepts' will be different (the point in which the line crosses the y axis)