need help please with 5 and 6
I WILL MARK BRANLIEST

General steps and answers are included in image. Hope this helps even though from number 4. I am guessing you have an idea of how it works