At first sight this problem looks insolvable as you end up with one equasion and two unknowns. However, you do not need brute force, since you have more information i.e. the number of dollars and the number of cents need to be natural numbers and the number of cents can never exceed 99.
Is this enough clue?
