The number of sit-ups Micah does is the sum of twice a number and 25. The number of sit-ups Micah does is also 3 times the number minus 25. How many sit-ups does Micah do?