I have a following circuit with an operational amplifier. It is a configuration I haven't seen before and I am not quite sure how to calculate the gain in terms of its inputs A and B.
The input B is just the configuration of Inverting Amplifier $$Gain_B = -\frac{470}{240}$$ Then I am puzzled by the 4k3 resistor. If the resistor wouldn't be there, the configuration would be similar to the differential amplifier and the gain would be $$ G = \bigg(\frac{240+470}{240}\bigg)\bigg(\frac{3k6}{3k6+510}\bigg)A-\bigg(\frac{470}{240}\bigg)B$$ However, that is neglecting the 4k3 resistor, which somehow changes the gain - it reminds me of the non-inverting amplifier configuration, which would have gain of $$G_\text{part} = 1+\frac{470}{4k3}$$ and the two resistor in front of it would just act as a potential divider \$\frac{3k6}{3k6+510}A\$
The correct solution should be $$G \approx 2.687A-1.9583B$$
Just to clarify, I am assuming and ideal op-amp here (i.e. infinite gain, etc.). This should not be a hard problem, however, I have failed to find even after a hour of googling (it might be caused by the fact that I do not know how to call this circuit configuration).