How are patterens used to solve problems?

How are patterens used to solve problems