You can just go on Google.com and type in algorithm and then you will scroll down and you will see algorithm-Wikipedia and on the side it will b a picture of a way to solve the problem but, make sure you put the number's where they need to go and if you need help putting it in expanded form just ask I know how to do it