A non-inverting amplifier uses a feedback divider, so its gain is one plus a ratio. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
The feedback divider samples the output
The feedback divider uses 3 ohms to ground and 6 ohms to the output.
RgRf=3ohm6ohm=2
The non-inverting gain adds one
The gain is one plus the resistor ratio, so 2 volts becomes 6 volts.