Added answer for #2

Broke the problem apart and answered a and b.