给出以下两个列表，请编写一个函数来查找它们共有的元素。


list1 = [4, 3, 9, 1, 7]
list2 = [2, 6, 1, 8, 5]

# TODO: find common elements in both lists
```python
def find_common_elements(list1, list2):
    return list(set(list1).intersection(set(list2)))

list1 = [4, 3, 9, 1, 7]
list2 = [2, 6, 1, 8, 5]
common_elements = find_common_elements(list1, list2)
print(common_elements)
```

Output:
```
[1]
``` 

The `find_common_elements()` function takes two lists as input and returns a new list containing the common elements found in both lists. The sets are first created to avoid duplicates, `set.intersection()` method is used to find and return the common elements. The output is then printed on the console.