How did product B get formed?

Hi, I had a question on my Orgo 2 test where I had to do Frieder-Crafts Alkylation. I was given this problem and asked, "How was product B able to form?" Can someone show me the mechanism for product B? Was it a methyl shift that caused this? Thank you

Hi, I had a question on my Orgo 2 test where I had to do Frieder-Crafts Alkylation. I was given this problem and asked, "How was product B able to form?" Can someone show me the mechanism for product B? Was it a methyl shift that caused this? Thank you