Mary is thinking of a number, which she calls y. She multiplies her number by 4 and then adds 10. If the result is 38, what is the value of y?