Squares and Cubes | Math Problem

Click here to read the complete problem statement.

How to get more values?

I can’t figure this problem out