Problem 8

I actually eyeballed it the first time with ctrl-f but this is a
solution with code that works