A two-particle system is studied in a space with noncommutativity of coordinates and noncommutativity of momenta. We consider the case when different particles feel noncommutativity with different parameters, which are determined by their masses. We have found exactly the spectrum of a two-particle system with harmonic oscillator interaction in the noncommutative phase space.