When you have a limit that looks like 0/0 or Infinity/Infinity thats when you use L'Hopital's rule.

For the first one you can use the rule immediately. For the second one you have to get it in the form Infinity/Infinity so you get a common denominator and it turns into -5x/(x+5), and then use the rule.