Problem 594

Problem # 594
 

A chemist tried to prepare compound A from benzene via Friedel-Crafts alkylation and instead produced compound B.

Why did this happen? How could the chemist prepare compound A?