OK, here, we can simply apply the values and solve for which one works.
23.50 * 3 = 70.50
23.25(3) + 17 = 86.75
Now, they are not equal.
Try another one!
27.50 * 5 = 137.50
23.25*5 + 17 = 133.25
Not correct either!!
Try another!
27.50 * 6 = 165
23.25 *6 + 17 = 156.50
NO! Lets try the second one!!
27.50*4 = 110
23.25 * 4 + 17 = 110
THIS ONE IS CORRECT!
Answer: 4 hours is when they have the same charges.