Form usability: Input type selector

I'm working on the form right now. There's part where user have to input data which can be two different type. For example input field where user can type money amount and then select currency. I'm not sure how this should be called. How would you handle this situation when theres two different units?

Here's couple ways what I've been thinking.

Option1:

enter image description here

Option2:

enter image description here

Thanks in advance.