Hello Titaree,
We can generalize this question a bit, so that you can have a formula for similar problems at hand.
Suppose Computer A (or Machine A, Person A, etc.) can do 1 job in x hours, and Computer B can do 1 job in y hours. These are equivalent to
Computer A: (1/x) job in 1 hour
Computer B: (1/y) job in 1 hour
since we make the assumption that these computers work at the same pace throughout the job.
Then, in 1 hour, Computer A and Computer B working together will finish the sum of the portions of a job that each completes on its own, namely:
Computer A and Computer B together: ((1/x) + (1/y)) job in 1 hour => (x+y)/(xy) job in 1 hour.
Now, we are interested in how long it takes to complete one job, so if we "multiply through" the last statement by the reciprocal of (x+y)/(xy), we get:
A and B together: 1 job in (xy)/(x+y) hours.
At this point, you may substitute the quantities for x and y from your problem to find the solution.
Note that you may generalize this technique further in several directions, but the principle is the same.
Regards,
Hassan H.