Not sure how to explain the help I need. So I have a list of names with their ages... such as

Mark 24
Steve 35
Bob 42
Dave 45
Jack 52
Dean 55
Dan 60

My query is if I have 2 values say 30 and 45

Then I would like the function to return the names of Steve, Bob, Dave, since they are between the ages of 30 and 45

I need a formula that would return all of these names either in 1 cell or in seperate cells...

Thank you