Candice had $120 more than Gabriel. Candice gave 3/5 of her money to Gabriel. Gabriel then gave 25% of his money to James. In the end, Gabriel had $20 more than Candice. How much did Candice have at first?

Based on the given conditions, formulate:

(x - 120 + 3x/5) + (1 - 25%) + 20 = x - 3x/5 + 25%
(x - 120 + 3x/5) + (1 - 0.25) + 20 = x - 3x/5
x - 120 + 3x/5 - 0.25x + 30 - 0.15x + 120 = x - 3x/5 + 0.2
x - 5 - 120 * 5 + (3x * 5)/5 - 0.25x * 5 + 30 * 5
x * 5 - 120 * 5 + 3x - 0.25x * 5 + 30 - 5 - 0
5x - 120 * 5 + 3x - 1.25x + 30 * 5 - 0.75x
5x - 600 + 3x - 1.25x + 150 - 0.75x + 100
6x - 350 = 4x -150
6x - 4x = -150 + 350
2x = -150 + 350
2x = 200
x = 100