How to Find Maximum and Minimum Points