Juan Carlos has been asked to find the distance between two points ( -3, 2) and (12, 10)on a coordinate grid. How many units are the legs of the right triangle?