In the following reaction, compound Q is obtained from compound P via an ionic intermediate.
What is the degree of unsaturation of Q?
In the following reaction, compound Q is obtained from compound P via an ionic intermediate.
What is the degree of unsaturation of Q?

Official answer: 18
Ionic intermediate. The ester is flanked by two phenyl groups. In conc. it loses methanol to give the acylium ion .
Cyclisation. The acylium ion attacks the neighbouring ortho phenyl ring (intramolecular Friedel-Crafts acylation). This closes a five-membered ring and gives 1,3-diphenylfluoren-9-one, which is yellow.
Degree of unsaturation of Q, :
As a check: the fluorenone core has 10 (3 rings + 6 C=C + 1 C=O) and each phenyl has 4.
Answer: 18