Identify a pattern and solve a problem involves two variables