title: How to search within a two-dimensional array
body: <p>I'm trying to learn how to search within a two-dimensional array; for example: </p>
  
  <pre><code>array = [[1,1], [1,2], [1,3], [2,1], [2,4], [2,5]]
  </code></pre>
  
  <p>I want to know how to search within the array for the arrays that are of the form <code>[1, y]</code> and then show what the other <code>y</code> numbers are: <code>[1, 2, 3]</code>.</p>
  
  <p>If anyone can help me understand how to search only with numbers (as a lot of the examples I found include strings or hashes) and even where to look for the right resources even, that would be helpful.</p>