Magan and his children went into a grocery store and he bought $9 worth of apples and bananas. Each apple costs $1 and each banana costs $0.50. He bought 6 more bananas than apples. By following the steps below, determine the number of apples, x and the number of bananas, y that Magan bought.