(a) first step of the reaction is Friedel Craft acylation. This is followed by reduction in the next step, and intramolecular Friedel Craft acylation in the subsequent step.Reduction of ketone give carboxylic acid. We can go for another acylation which is intramoelcular in the presence of strong acid i.e. phosphoric acid.