find the magnitude and direction of the resultant of two vectors