Query: In what year was East and West Prussia first united?
Context: From 1905, the southern districts of East Prussia formed the separate Regierungsbezirk of Allenstein. East and West Prussia were first united in personal union in 1824, and then merged in a real union in 1829 to form the Province of Prussia. The united province was again split into separate East and West Prussian provinces in 1878.