Rearrange a grouping of numbers into a list of tuples
<p>Given:</p>

<pre><code>x = '1 (2,3), 4 (5)'
</code></pre>

<p>How would I get:</p>

<pre><code>y = [(1,2),(1,3),(4,5)] ?
</code></pre>

<p>Thank you.</p>
