If there are six periods in each working days of a school, in how many ways

If there are six periods in each working days of a school, in how many ways can one arrange 5 subjects such that each subject is allowed period at least? (please also explain thelogic behind the question).

image