Instructions: In this task, you are given a list of integers and an integer k. You need to find the kth smallest element in the input list and return that.
Input: [217, 170, 223, 94, 230, 104, 218, 42, 118, 265, 82, 281, 149, 71, 273, 51, 196, 72, 138, 247], k=2
Output:
51