=Not a Teacher=
It seems not to be a third conditional. "They would have learned" means something like "I am fairly certain that they learned".
Here is a similar example:
I don't know where my parents got married, but they were practising Christians at the time, so it would have been in church.