Let's call x to the unknown number.
"Twice a number" means we need to multiply the unknown number by 2, that is, 2x.
Then, "twice a number plus four equals 22" is represented by the next equation:

Subtracting 4 at both sides of the equation:

Dividing by 2 at both sides of the equation:

The number is 9