Where a weekly rest period falls on Sunday and Monday the whole of that weekly rest period can count for either but no both of the weeks, the weekly rest period is not split part for each week.
See if this makes sense to you, The yellow highlighting is just to separate the weeks.
This assumes that you start week 1 having had a full 45 hour weekly rest that can count for week 1.
The number in brackets in the centre column is the week that the weekly rest period will count for.
You haven’t said what hours you would be working so I’ve assumed days and finishing times immediately before a weekly rest period starts will always be before midnight.