How to do this question, finding the value of a?

enter image source here