Unfortunately, I never got a definitive answer from my teacher either. We had to study a lot of words and phrases in class, so we ended up memorizing the pronunciations. It does become a bit second-nature later on, but I haven't figured out how to explain how to pinpoint what the reading should be in certain combinations. Your best bet would be to practice vocabulary and you'll start to see a pattern.