The scenario of Mathew and Jane relationship and their decision for the marriage does not illustrate the latent function of education.
Meeting with someone (male or female) and find him or her compatible and then take to that bond or relationship to the level of marriage is not indicate any function of education.
The purpose of education is to gaining a sense of being responsible and potential/ability to distinguish between right and wrong decisions. Marrying some and living life with him/her is a personal choice.