Equations with ordered pairs