Judge Kelly told the court elements of premeditation and persistence comprised part of the offending – that the man's girlfriend told him to "just do it".
Kelly said the offending was serious and both defendants should take advantage of the court-ordered mental health assistance given to them in sentencing.
The man was sentenced to five months of home detention with the additional condition that he must attend an assessment with a psychologist and complete all recommended treatment to the satisfaction of his probation officer.
He is also ordered to have no contact with the victim, or with his former girlfriend without the prior written consent of a probation officer.
The woman will serve three months of community detention, with a curfew between 5pm and 4am. She is subject to the same assessment and treatment conditions of her male co-defendant and must also have no contact with him, or the victim without prior consent.
Judge Kelly urged the pair to use any and all services offered to them.
"You are both young and I really encourage you to take advantage of any counselling offered to you to ensure something like this never, ever happens again."
Sexual harm - Where to get help
If it's an emergency and you feel that you or someone else is at risk, call 111.
If you've ever experienced sexual assault or abuse and need to talk to someone, contact Safe to Talk confidentially, any time 24/7:
• Call 0800 044 334
• Text 4334
• Email support@safetotalk.nz
• For more info or to web chat visit safetotalk.nz
Alternatively contact your local police station - click here for a list. If you have been sexually assaulted, remember it's not your fault.