First, let's make an equation as to how to find how much money they have altogether:
(M stands for the # of month)
Jaclyn: 120 + 40m
Pedro: 180 + 20m
So let's plug-in 1 for m (1 will stand for 1 month)
Jaclyn: 120 + 40 * 1 = 160
Pedro: 180 + 20 * 1 = 200
I made a table depicting how much they'll make for the next 5 months (attached below). According to that, on month 3, they will have made the same amount of money (or $240).
So they will have the same amount of money in 3 months. Hope this helps! :)