I'm mentally impaired. Question 2 now completed

Still keeping the answer to #1 just because it took me so long to write