title: Summing numbers from 1st array if 2nd array match
body: <p>I have 2 arrays that looks like this:</p>
  
  <pre><code>amountArray = ["200","150","500","100"];
  currencyArray = ["EUR","EUR","USD","USD"];
  </code></pre>
  
  <p>I'd like to sum amounts from 1st array if 2nd array match.
  Result i'd like to get :</p>
  
  <pre><code>totalAmount = "350 EUR | 600 USD";
  </code></pre>