It does not "take" a value. It IS the value at the point you connect to.
Vout\$V\$out, and the bottom of R2, and the top of R1 are all connected.
They are therefore necessarily all at the same voltage.
But R1 & R2 are "comfortable with this" - the point of the calculations that have been done was to find the voltage at which this condition was true.
With 8V8 V across R2 if you start at 10V10 V and come "down" R2 to the bottom you get 10-8 = 2V10 - 8 = 2 V
.
With 2V2 V across R1, if you start at ground and travel "up" R1 you get 0 + 2V = 2V0 + 2 V = 2 V
at the top.
iei.e., starting at top or bottom you conclude that the voltage where R1 and R2 join is 2V2 V. You would be concerned if you did not get the same answer whatever you did as the whole point in working out the voltage across each is to work out what is needed for them to be "in equilibrium" when connected.
AdviceAdvice: So far you are missing the intuitive feel for what Ohms law is about. What seems very hard will one day suddenly become blindingly obvious (really) and will make sense from then on. So - play with resistors on paper. Redraw Ohms law 3 ways* and make sense of each. Understand what it means. Then one day ... . :-)
- R = V/I
I = V/R
V = IR
$$R = \frac{V}{I}$$ $$I = \frac{V}{R}$$ $$V = IR$$
What seems puzzling and hard and a=obscure MUST become obvious and simple and trivial. Strange as it may seem, this can and will happen if you continue t play with the subject. All these forms must and in time will make COMPLETE sense to you. They must seem so trivially obvious that there can be no doubt that this is how it should be (even though in the real world there are small variations due to the special magics that indwells the stuff the world is made of).
Once you havhave grasped OhmsOhm's law you can try resistiveResistive power dissipation.
For P = power.
P = V^2 / R
$$P = \frac{V^2}{R}$$
P = I^2 x R$$P = I^2 . R$$
P = V x I$$P = V . I$$
All these are exactly equivalent. Clue - plug in the value for one of the variables from Ohm's law, cancel out what can be cancelled and you will arrive at another form of the statement.
eg P = V^2/R = V x VFor Example: / R$$P = \frac{V^2}{R} = V . \frac{V}{R}$$
BUT Ohm's law say V = IRV = IR
so P = V x V / rP becomes
P = Ix R x I x R / R
$$P = \frac{I. R . I . R}{R}$$
P = I^2R^2/R = I^2 R$$P = \frac{I^2R^2}{R} = I^2 R$$ Same as above.