complete the ordered pair calculator