Given:
S = [2, 1, 3, 4, 7, 5] Z = 8
Create a function that will return true if numbers X and Y exist within S such that X + Y = Z, return false otherwise.