Ohm's law ties four quantities together: voltage (V, in volts), current (I, in amps), resistance (R, in ohms) and power (P, in watts). The core relations are V = I x R and P = V x I. Because the four are linked, knowing any two of them fixes the other two — a 12 volt supply across a 4 ohm resistor pushes 3 amps through it and delivers 36 watts, and there is no other consistent answer.
Enter any two of the four values and the other two are worked out from those same two formulas, rearranged as needed: current from voltage and resistance is I = V / R, resistance from voltage and power is R = V squared / P, and so on. Some combinations have no answer — with fewer than two values the rest are not fixed, and a resistance of zero cannot sit alongside a voltage and current that disagree with it — so those are reported as no solution rather than a made-up number. Everything updates as you type, and nothing you enter leaves your browser.
V = I x R: voltage equals current times resistance. A current of 2 amps through a 10 ohm resistor needs 20 volts, and uses 40 watts of power.
3 amps: divide the voltage by the resistance, I = V / R = 12 / 4. The power is then V x I = 12 x 3 = 36 watts.
Divide the power by the voltage: I = P / V = 60 / 120 = 0.5 amps. The resistance follows from R = V / I = 120 / 0.5 = 240 ohms.
Any two: the four values are linked by V = I x R and P = V x I, so two known values are enough to pin down the other two. With only one value, infinitely many combinations fit, so there is no single answer.
It means the two values given cannot both be true: for example, a resistance of zero with a voltage across it would demand infinite current. Check the two values — one of them is off, or the combination describes a short circuit rather than a working circuit.