A simple Ruby program to solve single-variable algebra problems