when the graph of one function is exactly the same as the others, what we end up with is just the graph of one pancaked on top of another, so the functions touch each other all the way. Solutions are where the graphs touch each other and since in this case both lines are going to infinity, solutions for the system is equally infinite.
Check the picture below.