If I got it correctly, the variables that decide that are the following:
And if I got it right, those would be the following scenes for Maya:
- Maya lewd scene during the dorm party in episode 8.
- Going with Maya when you can choose who to follow in episode 5 during the prep party.
- Going with Maya when you can choose who to visit in episode 7.
- Lewd scene with Maya in episode 3.
- The scene behind the green screen with Maya in episode 9.
And for Josy:
- Josy lewd scene at the gym at the start of episode 8.
- Going with Josy when you can choose who to follow in episode 5 during the prep party.
- Going with Josy when you can choose who to visit in episode 7.
- Lewd scece with Josy after Maya's dad visit during episode 7.
- Lewd scene with Josy after the HOTs party in episode 7.
In order to get the best possible result, +3 RP for each girl, you need to have the same score for each other, or have Maya be one point over Josy (at least, that's why I interpret from the code):
The easiest way to do it is just to get all the solo scenes, and when it comes to choose which girl to follow or visit in episodes 5 and 7, just choose a different one each time, and that should do the trick.
Once again, that's what I think is correct, if it's not, I would appreciate to be corrected since I haven't checked this in-game yet XD