On line 4 I have evaluated the solutions for each problem I have listed above.