p- it is amount of exercises
average=

Monday average=

Tuesday average=

If we take into account both days and calculate average from Monday and Tuesday ( we sum 3h on Monday and 2 hours on Tuesday and p exercises on Mon and p exercises on Tuesday):
Monday and Tuesday average=
