When I was 10, Mary was half my age. Now I’m 50, how old is Mary?

Image of Riddle Question

Can you solve this riddle without clicking that tempting answer button?