Math 141 2.1B Applications using distance and midpoint formulas