Finished Problem 3

Answer: 6857