Add partial pressures:

P1= n1RT/V
P2= n2RT/V
P = P1+ P2 = (n1+ n2)RT/V

Add moles of each substance:

n = n1+ n2
P = nRT/V = (n1 +n2)RT/V