Okay, I have been at this for 4 hours and I have made no progress so any input on how to go about this would be appreciated.
I am given a random integer that is supposed to represent a number of basketballs.
If the integer is even, I can take away half of the balls.
If the number is divisible by 5, I can take away 42 balls.
And if the number is divisble by 3 or 4, I can take the last two digits multiplied together and subtract that from the number of balls.
The goal is to end up with 42 balls.
How would I go about calculating all possible cases where I can reach that goal?