Can a student on F1 work on 40 hours off campus CPT and 20 hours on campus job at the same time?

I am graduate student in a STEM program. I wanted to know if a student on F1 work on 40 hours off campus CPT and 20 hours on campus job at the same time?

Firstly working off campus is illegal. Read off campus vs on campus jobs in US . You need proper authorization to work either on campus or on CPT. Usually CPT is given by school and allowed for 20 hours during regular semester and 40 hours in summers, when you do not take other classes.