You will be given a definition of a task first, then some input of the task.
You are given a list of integers and an integer target, return a list of a pair of numbers in any order such that they add up to target. If there is no such pair of numbers, then return an empty list

[1, 35, 20, 7, 16, 47, 41, 36, 24, 3, 38, 5, 13, 31, 2, 23, 14, 39, 6, 19], target=40
Output:
[16, 24]