Albert thought of a number, added 5, multiplied the result by 2, took away 6 and then divided by 2 to give an answer of 8.
Let a be the number that Albert has in mind

If we add 5 to this number a+5.

Let’s double this number 2(a+5).

Let’s subtract 6 from this number 2(a+5)6.

Let’s divide this number by 2 , \large \frac{2(a+5)6}{2}
\large \frac{2(a+5)6}{2}=8
\large 2(a+5)6=16
\large 2(a+5)=22
\large (a+5)=11
\large a=6
Answer: 5