Say i m in the cinema and there are 4 seats. say the closest seat is the best view which is 4 meters away. say the further the distance away the worse the viewing quality. eg [5,6,4,9] are the distances of seats away from screen. Now lets say people sitting in front of you also effects viewing quality. eg a tall person. So for the same corresponding seats the level of obstruction (on a scale of 1-10, 1 being small obstruction and 10 being a big obstruction) of the view from people sitting in front of you is now [7,8,9,5]. which seat is the optimal viewing position? I ask this because of a problem thats hard to explain but is similar to the analogy i have explained. Maybe im asking an impossible question but i m trying to correlate the smallest value of one array with the optimal(smallest) value of the other array. Is this simply solved by multipling each corresponding value and then getting the smallest. eg 5*7 = 35 6*8 = 48 4*9 = 36 9*5 = 45 a distance of 5 meters with viewing quality of 7 is the optimal view? I m guessing there is some kind of mathematical function out there for a question like this.