For A, both equations have the same slope, but different y-intercepts. This means that they are parallel, and will never cross, meaning there is no solution.
For B, it's the same equation, meaning that they are always crossing (it's the same line!), so there are infinite solutions.