common_elements(list_a, list_b) that returns a sorted list of the distinct values that appear in both list_a and list_b.common_elements([1, 2, 3, 4], [3, 4, 5])
[3, 4]
3 and 4 are the only values present in both lists.
common_elements([1, 2], [3, 4])
[]
No overlap between the two lists.
Convert both lists to sets and use the & (intersection) operator.
Wrap the result in sorted(...) to get a sorted list back.