nice algebra problem