An algebra problem from Harvard-MIT mathematics tournament.