Let the number of hours he worked at his weekday job be x and the number of hours he worked at his weekend job be y, then

From (1): 25 + y = 40
y = 40 - 25 = 15.
Therefore, Beneio worked for 25 hours at his weekday job and 15 hours at his weekend job.