The answer to this question is 2 as opposed to 4 because except for L(Opening) and S(Final), the other variables have the option to switch between opening and final within their respective slots.
R and V can switch with each other, while M and G can do the same with each other.
I hope this helps. Please let me know if you have any other questions or would like me to elaborate further.