Let x be the number of hours the student studied on Saturday.
According to the given information, the student studied 2.5 times as many hours on Saturday as they did on Friday. So, x = 2.5 * 4 = 10 hours.
Therefore, the total number of hours the student studied both days is 4 + 10 = 14 hours.