As per given by the question,
John can do the project in 3 hours,
So,
And, Mariano can do same project in 5 hours.
So,
Now,
Let t is the time to finish the project.
So,
If they work together, then;
Now,
Multiply both side by 15t,
So,
Then,
Hence, 1.87 hours would it take them to complete the project if working together.