Solution:

I understand the first line. The rest is confusing. I don't understand how is found. Any help would be appreciated. Thanks

Edit: I guess it helps to take the time to type everything out and look at it. I have an understanding of the solution now, but I wouldn't be able to come up with a solution on my own. I'd love any insights for this sort of problem. Thanks