Hi Guys, I have quite a hard question, I am attaching 2 picture, one of the question and 1 of my attempt to solve the first part, I must have done something wrong, either from probability point of view or calculus...

any ideas for "a" and "b" (which I have no clue about) will be appreciated.

Thank you !!