Consider following riddle in short form:
A king seeks a new treasurer and ask all the possible candidates the following question to check their logical abilities.
"There is a chest in front of you. The chest holds bags which contain the same amount of gold coins. The chest contains a total of coins between 150 and 200. The chest holds more than one bag and every bag holds more than one coin. If I'd tell you the total of coins in the chest, you'd be able to tell me how many bags the chest holds and how many coins each bag holds. How many coins are in the chest, how many coins are in each bag, and how many bags are in the chest?"
I've figured the answer out by using some kind of brute force of dividing the numbers between 150 and 200 to find the solution. But how would one solve this using algebra?