I’m not sure if all of this is correct but it might help?
MACKAY ALEXANDER 46 (1843) GIBSON 1889 Duddingston and Portobello
1881 - 69, High Street, Duddingston, Portobello, Midlothian
Alexander Mackay Head Married 39 1842 House keeper Stewarton, Ayrshire,
Janet Glendinning Or Mackay Wife 38 1843 - Dumfries, Dumfriesshire,
Alexander Mackay Son Unmarried 3 1878 - Portobello, Midlothian, Scotland
William Mackay Son Unmarried 1 1880 - Portobello, Midlothian, Scotland
Robert Johnson Step son Unmarried 19 1862 Mason Dumfries, Dumfriesshire,
GIBSON MARY married ALEXANDER MACKAY 10/06/1836 Stewarton
Colin