Let y=kx substitute (1, 4) to get k=4.
∴y=4x
Let y=ax+b substitute (1, 4) and (5, 0).
∴a+b=4
5a+b=0
∴a=- 1,b=5
∴y=-x+5
Finally y=4x
-x+5