can you give me an example of step by step solving a problem