I have a very long list from which I will display part of it as,
a={{1, {3, 5, 8, 9}}, {2, {4, 6}}, {6, {1}}, {10, {1, 3, 5, 6, 7, 8}}};
For plotting purposes, I would like to rewrite the list in the following form
a = {{1, 3}, {1, 5}, {1, 8}, {1, 9}, {2, 4}, {2, 6}, {6, 1}, {10,
1}, {10, 3}, {10, 5}, {10, 6}, {10, 7}, {10, 8}} ; ListPlot[a];
Since the actual list is extremely long, I appreciate it if you can help me in doing this. Please keep in mind that the first number is associated with one or more other numbers.
Thanks in advance.