title: Compare first column of one file with the first column of second and print associated column of each if there was a match
body: <p>I have two files, I need to compare their first columns and if the match is found, I'd like to output the corresponding values from both files.</p>
  
  <p>Similar to this Q but I'd like to print columns from both files not one: <a href="https://stackoverflow.com/questions/36004437/how-to-compare-multiple-columns-in-two-files-and-retrieve-the-corresponding-valu">How to compare multiple columns in two files and retrieve the corresponding value from another column if match found</a></p>
  
  <p>File1.txt</p>
  
  <pre><code>adeqY   33.7
  AIsLX   65.6
  AmuBv   1589.0
  aZMIx   84.4
  </code></pre>
  
  <p>File2.txt</p>
  
  <pre><code>AmuBv foo
  iwwlp bar
  adeqY hi
  qUbJZ bye
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>hi 33.7
  foo 1589.0
  </code></pre>
  
  <p>I have the following <code>awk</code> command but I only managed to print the second column match from File2:</p>
  
  <p><code>awk 'FNR==NR{a[$1]; next} ($1) in a {print $2 a[$2]}' File1.txt File2.txt</code></p>
  
  <p><code>a[$2]</code> doesn't want to print</p>
  
  <p>Thanks in advance.</p>