Script to solve a school Problem Of The Week

Useless to you, reader, unless you are my math teacher.