You were doing well until you got to this part. Nobody knows what x and y are at this point. I'm going to assume that y is how often Hero folds? If so, you have Villain's EV of a bluff being:
Villain's strategy: always bet an A and bet a Q a fraction x of the time
Hero's strategy: fold a fraction y of the time
I said what x and y are but I should have highlighted them