Problems with two variables