Solution for Problem 19