Hi.
It is a very easy question..One needs to apply KVL around the loop with the 30 V source and 12 V component.
KVL simply states that the sum of voltages around a closed loop is equal to zero. Equivalently, sum of voltage drops is equal to sum of voltage rises around the loop.
As a side note, please know that any device in circuit analysis is a model. Two terminal devices are models/abstractions, for which the:
1. Current entering any terminal is defined.
2. Voltage function between the positive and negative terminal can be defined.
We arrive at these models through the lumped circuit abstraction, please google it if you would like to know more. Anant Agarwals lectures on MIT Opencourseware nicely cover it. This is if you want a good introduction to circuit analysis and basic electronics:
So, you have the voltage functions for two devices, you know KVL, you simply must apply this law around this loop and find ## V_{0} ##
We can use a simple equation here, but usually when going around in a "loop" I learned to check the polarity of the terminal through which the current I am tracking is entering, and assign this same coefficient to the voltage function, keeping this convention consistent is important.
So if we start from the battery:
## - 30 V + 12 V + V_{0} = 0 ##
## -18 V = -V_{0} ##
## V_{0} = 18 V##