This program gives you the answer and lets you tweak it. Just click once to see the answer. Give yourself a try to find the answer before you look at it and let me know in the comments.
I found this question on Brilliant.com and decided to make a project about it and came up with that. You can find the original question at this link below https://brilliant.org/weekly-problems/2018-05-07/basic/?p=5 I hope you enjoy this project.