Determine if an ordered pair is a solution 1