equation of line is y = mx + b, where m is slope and b is y-intercept.
since slope is -1, m = -1. Since line passes through (5,0), we substitute 5 for x and 0 for y (along with -1 for m) to solve for b:
0 = -5 + b ---> b = 5
so equation is y = -x + 5