Yaneev thinks of a number y. He subtracts three from the number, then doubles it. What is the final result, in terms of y?