Problems with equations and variables