Identifying solutions to a linear equation in two variables