Try this in B2, copied down:

=INDEX(Sheet1!A:A,MATCH(A2,Sheet1!B:B,0))