Solution for Worksheet #1 Problem #18