Consider the following grammar:
$S \rightarrow A$
$S \rightarrow xb$
$A \rightarrow aAb$
$A \rightarrow B$
$B \rightarrow x$
The average length of the stack used while parsing the string "axb$" using LR(1) parser is _________.
I am getting 5, but answer is 2.5.