How to find element by name?

2 input fields have same class name ,so unable to find element for 2nd field.

can anyone tell me how to find element by name and xpath with an example?

/descendant::input[@name=‘some_name’][last()]