You can simply plug in the value for P that they give you into the equation and solve for n.
P = 490n - 10780
They tell us P = 15190
So:
15190 = 490n - 10780
From here solve for n by adding 10780 to both sides first
25970 = 490n
And then dividing both sides by 490
53 = n.
So the company must sell 53 computers to make a profit of 15190.