hello_beginner,
Let me try to be helpful, without doing your homework for you. Store your data in a hash of arrays (use column 1 as the hash key). Show us what you have done and how it failed. I see that your output contains field 2 data which is not mentioned in your spec. - Explain. You can improve the appearance of your post by enclosing your input and output in code tags.