Placeholder for solution to 18.
Working algorithm for 18 (toy data).