Hi Malcolm,
Thank you so much for looking this up. Although I will have to do further research, I think the 2nd marriage is the one I am looking for. The age given by Mary in all the census is consistent with a birthyear of 1798, so she would have been to young for the first marriage.
Again, many thanks, Yvonne.