Quantile function gamma revisited

I have been trying to answer the same question as Mario (without noticing this thread):

I feel like I am almost there, but am having a variable type mismatch in the solver. Do you have any suggestions?Apologies for cross-posting - I only just saw this thread.