Hopefully this is enough work for you finding the the best way to get the multiples of the middle x makes it easier so there is not as many trial and errors. These problems are normally trial and error so don’t lose hope if you don’t get it right away