Solution
Solution 1 (10)
Solution 2 (5)