Homework equations with variables on both sides