We can establish a "work rate" or velocity for Cody. It will represent the fraction of the job he does in an hour, or the "job per hour". If he does 1 job in 87 hours, it means that he does 1/87 of the job in an hour.
Similarly, when both Cody and Patricia work at the same time, they can do 1/58 of the job in an hour.
The combined job velocity (when they work together) is the sum of their individual velocities. Let's call P the velocity for Patricia:
[tex]\frac{1}{87}+P=\frac{1}{58}[/tex]Now we can solve for P, which will give us the fraction of work Patricia is able to do in 1 hour:
[tex]P=\frac{1}{58}-\frac{1}{87}=\frac{87-58}{5046}=\frac{29}{5046}[/tex]We can simplify the fraction, but for now, let's say Patricia does 29/5046 of the work in an hour. The time she would take to do the hob will be the inverse of that: 5046/29, which simplified gives us:
[tex]\text{Time Patricia takes}=\frac{5046}{29}=\frac{174}{1}[/tex]Then, Patricia will take 174 hours to do the job alone.